HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wpbiancoarte/wp-content/plugins/qi-blocks/assets/dist/clients-list.js
(()=>{var e={2:(e,t,n)=>{var r=n(4335)(Object.keys,Object);e.exports=r},80:(e,t,n)=>{var r=n(6025),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},270:(e,t,n)=>{var r=n(7068),o=n(346);e.exports=function e(t,n,l,i,a){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,l,i,e,a))}},294:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},346:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},540:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},689:(e,t,n)=>{var r=n(2),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,l,i,a){var s=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!s)return!1;for(var p=u;p--;){var m=c[p];if(!(s?m in t:o.call(t,m)))return!1}var d=a.get(e),b=a.get(t);if(d&&b)return d==t&&b==e;var f=!0;a.set(e,t),a.set(t,e);for(var g=s;++p<u;){var h=e[m=c[p]],y=t[m];if(l)var v=s?l(y,h,m,t,e,a):l(h,y,m,e,t,a);if(!(void 0===v?h===y||i(h,y,n,l,a):v)){f=!1;break}g||(g="constructor"==m)}if(f&&!g){var k=e.constructor,_=t.constructor;k==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof k&&k instanceof k&&"function"==typeof _&&_ instanceof _||(f=!1)}return a.delete(e),a.delete(t),f}},828:(e,t,n)=>{var r=n(7556);e.exports=function(e){return null==e?"":r(e)}},882:e=>{e.exports=function(e,t,n,r){var o=-1,l=null==e?0:e.length;for(r&&l&&(n=e[++o]);++o<l;)n=t(n,e[o],o,e);return n}},999:(e,t,n)=>{var r=n(9302),o=n(6800);e.exports=function(e){return r(function(t,n){var r=-1,l=n.length,i=l>1?n[l-1]:void 0,a=l>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(l--,i):void 0,a&&o(n[0],n[1],a)&&(i=l<3?void 0:i,l=1),t=Object(t);++r<l;){var s=n[r];s&&e(t,s,r,i)}return t})}},1020:(e,t,n)=>{"use strict";var r=n(6540),o=Symbol.for("react.element"),l=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,l={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,r)&&!s.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===l[r]&&(l[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:l,_owner:a.current}}t.jsx=c},1033:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},1074:e=>{e.exports=function(e){return e.split("")}},1113:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},1175:(e,t,n)=>{var r=n(6025);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},1331:(e,t,n)=>{var r=n(2552),o=n(8879),l=n(346),i=Function.prototype,a=Object.prototype,s=i.toString,c=a.hasOwnProperty,u=s.call(Object);e.exports=function(e){if(!l(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==u}},1438:(e,t)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(e===t)return!1;var o=Object.keys(e),l=Object.keys(t);if(o.length!==l.length)return!0;var i,a,s={};for(i=0,a=r.length;i<a;i++)s[r[i]]=!0;for(i=0,a=o.length;i<a;i++){var c=o[i],u=e[c],p=t[c];if(u!==p){if(!s[c]||null===u||null===p||"object"!==n(u)||"object"!==n(p))return!0;var m=Object.keys(u),d=Object.keys(p);if(m.length!==d.length)return!0;for(var b=0,f=m.length;b<f;b++){var g=m[b];if(u[g]!==p[g])return!0}}}return!1}},1572:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==s(e)&&"function"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var l=r?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(6540)),o=i(n(5556)),l=i(n(1438));function i(e){return e&&e.__esModule?e:{default:e}}function a(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e){return function(){var t,n=f(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=f(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;return b(e)}(this,t)}}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(a,e);var t,n,o,i=d(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return h(b(e=i.call.apply(i,[this].concat(n))),"storeItemReference",function(t){null!==t&&(e.item=t)}),h(b(e),"onMouseEnter",function(t){var n=e.props,r=n.sectionIndex,o=n.itemIndex;e.props.onMouseEnter(t,{sectionIndex:r,itemIndex:o})}),h(b(e),"onMouseLeave",function(t){var n=e.props,r=n.sectionIndex,o=n.itemIndex;e.props.onMouseLeave(t,{sectionIndex:r,itemIndex:o})}),h(b(e),"onMouseDown",function(t){var n=e.props,r=n.sectionIndex,o=n.itemIndex;e.props.onMouseDown(t,{sectionIndex:r,itemIndex:o})}),h(b(e),"onClick",function(t){var n=e.props,r=n.sectionIndex,o=n.itemIndex;e.props.onClick(t,{sectionIndex:r,itemIndex:o})}),e}return t=a,n=[{key:"shouldComponentUpdate",value:function(e){return(0,l.default)(e,this.props,["renderItemData"])}},{key:"render",value:function(){var e=this.props,t=e.isHighlighted,n=e.item,o=e.renderItem,l=e.renderItemData,i=p(e,["isHighlighted","item","renderItem","renderItemData"]);return delete i.sectionIndex,delete i.itemIndex,"function"==typeof i.onMouseEnter&&(i.onMouseEnter=this.onMouseEnter),"function"==typeof i.onMouseLeave&&(i.onMouseLeave=this.onMouseLeave),"function"==typeof i.onMouseDown&&(i.onMouseDown=this.onMouseDown),"function"==typeof i.onClick&&(i.onClick=this.onClick),r.default.createElement("li",c({role:"option"},i,{ref:this.storeItemReference}),o(n,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){h(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({isHighlighted:t},l)))}}],n&&m(t.prototype,n),o&&m(t,o),a}(r.Component);t.default=y,h(y,"propTypes",{sectionIndex:o.default.number,isHighlighted:o.default.bool.isRequired,itemIndex:o.default.number.isRequired,item:o.default.any.isRequired,renderItem:o.default.func.isRequired,renderItemData:o.default.object.isRequired,onMouseEnter:o.default.func,onMouseLeave:o.default.func,onMouseDown:o.default.func,onClick:o.default.func})},1578:e=>{"use strict";var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,l=void 0;try{for(var i,a=e[Symbol.iterator]();!(r=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,l=e}finally{try{!r&&a.return&&a.return()}finally{if(o)throw l}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};e.exports=function(e){var n=e.data,r=e.multiSection;function o(e){var o=t(e,2),l=o[0],i=o[1];return r?null===i||i===n[l]-1?null===(l=function(e){for(null===e?e=0:e++;e<n.length&&0===n[e];)e++;return e===n.length?null:e}(l))?[null,null]:[l,0]:[l,i+1]:0===n||i===n-1?[null,null]:null===i?[null,0]:[null,i+1]}return{next:o,prev:function(e){var o=t(e,2),l=o[0],i=o[1];return r?null===i||0===i?null===(l=function(e){for(null===e?e=n.length-1:e--;e>=0&&0===n[e];)e--;return-1===e?null:e}(l))?[null,null]:[l,n[l]-1]:[l,i-1]:0===n||0===i?[null,null]:null===i?[null,n-1]:[null,i-1]},isLast:function(e){return null===o(e)[1]}}}},1601:e=>{"use strict";e.exports=function(e){return e[1]}},1733:e=>{var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},1791:(e,t,n)=>{var r=n(6547),o=n(3360);e.exports=function(e,t,n,l){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var c=t[a],u=l?l(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),i?o(n,c,u):r(n,c,u)}return n}},1882:(e,t,n)=>{var r=n(2552),o=n(3805);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1961:(e,t,n)=>{var r=n(9653);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},1986:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},2054:e=>{var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",l="[^"+t+"]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+r+"|"+o+")"+"?",c="[\\ufe0e\\ufe0f]?",u=c+s+("(?:\\u200d(?:"+[l,i,a].join("|")+")"+c+s+")*"),p="(?:"+[l+r+"?",r,i,a,n].join("|")+")",m=RegExp(o+"(?="+o+")|"+p+u,"g");e.exports=function(e){return e.match(m)||[]}},2225:e=>{var t="\\ud800-\\udfff",n="\\u2700-\\u27bf",r="a-z\\xdf-\\xf6\\xf8-\\xff",o="A-Z\\xc0-\\xd6\\xd8-\\xde",l="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",i="["+l+"]",a="\\d+",s="["+n+"]",c="["+r+"]",u="[^"+t+l+a+n+r+o+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",m="[\\ud800-\\udbff][\\udc00-\\udfff]",d="["+o+"]",b="(?:"+c+"|"+u+")",f="(?:"+d+"|"+u+")",g="(?:['’](?:d|ll|m|re|s|t|ve))?",h="(?:['’](?:D|LL|M|RE|S|T|VE))?",y="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",v="[\\ufe0e\\ufe0f]?",k=v+y+("(?:\\u200d(?:"+["[^"+t+"]",p,m].join("|")+")"+v+y+")*"),_="(?:"+[s,p,m].join("|")+")"+k,w=RegExp([d+"?"+c+"+"+g+"(?="+[i,d,"$"].join("|")+")",f+"+"+h+"(?="+[i,d+b,"$"].join("|")+")",d+"?"+b+"+"+g,d+"+"+h,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",a,_].join("|"),"g");e.exports=function(e){return e.match(w)||[]}},2243:(e,t,n)=>{"use strict";e.exports=n(7424).default},2404:(e,t,n)=>{var r=n(270);e.exports=function(e,t){return r(e,t)}},2428:e=>{e.exports=function(){return!1}},2444:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==s(e)&&"function"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var l=r?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(6540)),o=i(n(5556)),l=i(n(1438));function i(e){return e&&e.__esModule?e:{default:e}}function a(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e){return function(){var t,n=p(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=p(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}var d,b,f,g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(a,e);var t,n,o,i=u(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"shouldComponentUpdate",value:function(e){return(0,l.default)(e,this.props)}},{key:"render",value:function(){var e=this.props,t=e.section,n=e.renderSectionTitle,o=e.theme,l=e.sectionKeyPrefix,i=n(t);return i?r.default.createElement("div",o("".concat(l,"title"),"sectionTitle"),i):null}}])&&c(t.prototype,n),o&&c(t,o),a}(r.Component);t.default=g,d=g,b="propTypes",f={section:o.default.any.isRequired,renderSectionTitle:o.default.func.isRequired,theme:o.default.func.isRequired,sectionKeyPrefix:o.default.string.isRequired},b in d?Object.defineProperty(d,b,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[b]=f},2507:(e,t,n)=>{var r=n(8754),o=n(9698),l=n(3912),i=n(3222);e.exports=function(e){return function(t){t=i(t);var n=o(t)?l(t):void 0,a=n?n[0]:t.charAt(0),s=n?r(n,1).join(""):t.slice(1);return a[e]()+s}}},2552:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},2694:(e,t,n)=>{"use strict";var r=n(6925);function o(){}function l(){}l.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,l,i){if(i!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:l,resetWarningCache:o};return n.PropTypes=n,n}},2824:(e,t,n)=>{var r=n(7805),o=n(3290),l=n(1961),i=n(3007),a=n(5529),s=n(2428),c=n(6449),u=n(3693),p=n(3656),m=n(1882),d=n(3805),b=n(1331),f=n(7167),g=n(4974),h=n(9884);e.exports=function(e,t,n,y,v,k,_){var w=g(e,n),S=g(t,n),A=_.get(S);if(A)r(e,n,A);else{var I=k?k(w,S,n+"",e,t,_):void 0,x=void 0===I;if(x){var C=c(S),q=!C&&p(S),E=!C&&!q&&f(S);I=S,C||q||E?c(w)?I=w:u(w)?I=i(w):q?(x=!1,I=o(S,!0)):E?(x=!1,I=l(S,!0)):I=[]:b(S)||s(S)?(I=w,s(w)?I=h(w):d(w)&&!m(w)||(I=a(S))):x=!1}x&&(_.set(S,I),v(I,S,y,k,_),_.delete(S)),r(e,n,I)}}},2865:e=>{e.exports=function(e){return e}},3007:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},3221:e=>{e.exports=function(e){return function(t,n,r){for(var o=-1,l=Object(t),i=r(t),a=i.length;a--;){var s=i[e?a:++o];if(!1===n(l[s],s,l))break}return t}}},3222:e=>{e.exports=function(e){return e}},3243:(e,t,n)=>{var r=n(6110),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},3290:(e,t,n)=>{e=n.nmd(e);var r=n(9325),o=t&&!t.nodeType&&t,l=o&&e&&!e.nodeType&&e,i=l&&l.exports===o?r.Buffer:void 0,a=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}},3360:(e,t,n)=>{var r=n(3243);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},3486:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==f(e)&&"function"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var l=r?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(6540)),o=c(n(5556)),l=c(n(1578)),i=c(n(4525)),a=c(n(2444)),s=c(n(7932));function c(e){return e&&e.__esModule?e:{default:e}}function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,l=void 0;try{for(var i,a=e[Symbol.iterator]();!(r=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,l=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw l}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e){return function(){var t,n=v(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=v(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;return y(e)}(this,t)}}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function k(e,t){return k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},k(e,t)}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w={},S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&k(e,t)}(u,e);var t,n,o,c=h(u);function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),_(y(t=c.call(this,e)),"storeInputReference",function(e){null!==e&&(t.input=e);var n=t.props.inputProps.ref;n&&("function"==typeof n?n(e):"object"===f(n)&&Object.prototype.hasOwnProperty.call(n,"current")&&(n.current=e))}),_(y(t),"storeItemsContainerReference",function(e){null!==e&&(t.itemsContainer=e)}),_(y(t),"onHighlightedItemChange",function(e){t.highlightedItem=e}),_(y(t),"getItemId",function(e,n){if(null===n)return null;var r=t.props.id,o=null===e?"":"section-".concat(e);return"react-autowhatever-".concat(r,"-").concat(o,"-item-").concat(n)}),_(y(t),"onFocus",function(e){var n=t.props.inputProps;t.setState({isInputFocused:!0}),n.onFocus&&n.onFocus(e)}),_(y(t),"onBlur",function(e){var n=t.props.inputProps;t.setState({isInputFocused:!1}),n.onBlur&&n.onBlur(e)}),_(y(t),"onKeyDown",function(e){var n=t.props,r=n.inputProps,o=n.highlightedSectionIndex,l=n.highlightedItemIndex,i=e.keyCode;switch(i){case 40:case 38:var a=40===i?"next":"prev",s=d(t.sectionIterator[a]([o,l]),2),c=s[0],u=s[1];r.onKeyDown(e,{newHighlightedSectionIndex:c,newHighlightedItemIndex:u});break;default:r.onKeyDown(e,{highlightedSectionIndex:o,highlightedItemIndex:l})}}),t.highlightedItem=null,t.state={isInputFocused:!1},t.setSectionsItems(e),t.setSectionIterator(e),t.setTheme(e),t}return t=u,(n=[{key:"componentDidMount",value:function(){this.ensureHighlightedItemIsVisible()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.items!==this.props.items&&this.setSectionsItems(e),e.items===this.props.items&&e.multiSection===this.props.multiSection||this.setSectionIterator(e),e.theme!==this.props.theme&&this.setTheme(e)}},{key:"componentDidUpdate",value:function(){this.ensureHighlightedItemIsVisible()}},{key:"setSectionsItems",value:function(e){e.multiSection&&(this.sectionsItems=e.items.map(function(t){return e.getSectionItems(t)}),this.sectionsLengths=this.sectionsItems.map(function(e){return e.length}),this.allSectionsAreEmpty=this.sectionsLengths.every(function(e){return 0===e}))}},{key:"setSectionIterator",value:function(e){this.sectionIterator=(0,l.default)({multiSection:e.multiSection,data:e.multiSection?this.sectionsLengths:e.items.length})}},{key:"setTheme",value:function(e){this.theme=(0,i.default)(e.theme)}},{key:"renderSections",value:function(){var e=this;if(this.allSectionsAreEmpty)return null;var t=this.theme,n=this.props,o=n.id,l=n.items,i=n.renderItem,c=n.renderItemData,u=n.renderSectionTitle,p=n.highlightedSectionIndex,m=n.highlightedItemIndex,d=n.itemProps;return l.map(function(n,l){var b="react-autowhatever-".concat(o,"-"),f="".concat(b,"section-").concat(l,"-"),g=0===l;return r.default.createElement("div",t("".concat(f,"container"),"sectionContainer",g&&"sectionContainerFirst"),r.default.createElement(a.default,{section:n,renderSectionTitle:u,theme:t,sectionKeyPrefix:f}),r.default.createElement(s.default,{items:e.sectionsItems[l],itemProps:d,renderItem:i,renderItemData:c,sectionIndex:l,highlightedItemIndex:p===l?m:null,onHighlightedItemChange:e.onHighlightedItemChange,getItemId:e.getItemId,theme:t,keyPrefix:b,ref:e.storeItemsListReference}))})}},{key:"renderItems",value:function(){var e=this.props.items;if(0===e.length)return null;var t=this.theme,n=this.props,o=n.id,l=n.renderItem,i=n.renderItemData,a=n.highlightedSectionIndex,c=n.highlightedItemIndex,u=n.itemProps;return r.default.createElement(s.default,{items:e,itemProps:u,renderItem:l,renderItemData:i,highlightedItemIndex:null===a?c:null,onHighlightedItemChange:this.onHighlightedItemChange,getItemId:this.getItemId,theme:t,keyPrefix:"react-autowhatever-".concat(o,"-")})}},{key:"ensureHighlightedItemIsVisible",value:function(){var e=this.highlightedItem;if(e){var t=this.itemsContainer,n=e.offsetParent===t?e.offsetTop:e.offsetTop-t.offsetTop,r=t.scrollTop;n<r?r=n:n+e.offsetHeight>r+t.offsetHeight&&(r=n+e.offsetHeight-t.offsetHeight),r!==t.scrollTop&&(t.scrollTop=r)}}},{key:"render",value:function(){var e=this.theme,t=this.props,n=t.id,o=t.multiSection,l=t.renderInputComponent,i=t.renderItemsContainer,a=t.highlightedSectionIndex,s=t.highlightedItemIndex,c=this.state.isInputFocused,u=o?this.renderSections():this.renderItems(),p=null!==u,d=this.getItemId(a,s),b="react-autowhatever-".concat(n),f=m({role:"combobox","aria-haspopup":"listbox","aria-owns":b,"aria-expanded":p},e("react-autowhatever-".concat(n,"-container"),"container",p&&"containerOpen"),{},this.props.containerProps),g=l(m({type:"text",value:"",autoComplete:"off","aria-autocomplete":"list","aria-controls":b,"aria-activedescendant":d},e("react-autowhatever-".concat(n,"-input"),"input",p&&"inputOpen",c&&"inputFocused"),{},this.props.inputProps,{onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.props.inputProps.onKeyDown&&this.onKeyDown,ref:this.storeInputReference})),h=i({containerProps:m({id:b,role:"listbox"},e("react-autowhatever-".concat(n,"-items-container"),"itemsContainer",p&&"itemsContainerOpen"),{ref:this.storeItemsContainerReference}),children:u});return r.default.createElement("div",f,g,h)}}])&&g(t.prototype,n),o&&g(t,o),u}(r.Component);t.default=S,_(S,"propTypes",{id:o.default.string,multiSection:o.default.bool,renderInputComponent:o.default.func,renderItemsContainer:o.default.func,items:o.default.array.isRequired,renderItem:o.default.func,renderItemData:o.default.object,renderSectionTitle:o.default.func,getSectionItems:o.default.func,containerProps:o.default.object,inputProps:o.default.object,itemProps:o.default.oneOfType([o.default.object,o.default.func]),highlightedSectionIndex:o.default.number,highlightedItemIndex:o.default.number,theme:o.default.oneOfType([o.default.object,o.default.array])}),_(S,"defaultProps",{id:"1",multiSection:!1,renderInputComponent:function(e){return r.default.createElement("input",e)},renderItemsContainer:function(e){var t=e.containerProps,n=e.children;return r.default.createElement("div",t,n)},renderItem:function(){throw new Error("`renderItem` must be provided")},renderItemData:w,renderSectionTitle:function(){throw new Error("`renderSectionTitle` must be provided")},getSectionItems:function(){throw new Error("`getSectionItems` must be provided")},containerProps:w,inputProps:w,itemProps:w,highlightedSectionIndex:null,highlightedItemIndex:null,theme:{container:"react-autowhatever__container",containerOpen:"react-autowhatever__container--open",input:"react-autowhatever__input",inputOpen:"react-autowhatever__input--open",inputFocused:"react-autowhatever__input--focused",itemsContainer:"react-autowhatever__items-container",itemsContainerOpen:"react-autowhatever__items-container--open",itemsList:"react-autowhatever__items-list",item:"react-autowhatever__item",itemFirst:"react-autowhatever__item--first",itemHighlighted:"react-autowhatever__item--highlighted",sectionContainer:"react-autowhatever__section-container",sectionContainerFirst:"react-autowhatever__section-container--first",sectionTitle:"react-autowhatever__section-title"}})},3488:e=>{e.exports=function(e){return e}},3656:e=>{e.exports=function(){return!1}},3675:e=>{"use strict";var t=Object.prototype.propertyIsEnumerable;function n(e){var n=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(e))),n.filter(function(n){return t.call(e,n)})}e.exports=Object.assign||function(e,t){for(var r,o,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),i=1;i<arguments.length;i++){r=arguments[i],o=n(Object(r));for(var a=0;a<o.length;a++)l[o[a]]=r[o[a]]}return l}},3693:(e,t,n)=>{var r=n(4894),o=n(346);e.exports=function(e){return o(e)&&r(e)}},3702:e=>{e.exports=function(){this.__data__=[],this.size=0}},3805:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},3912:(e,t,n)=>{var r=n(1074),o=n(9698),l=n(2054);e.exports=function(e){return o(e)?l(e):r(e)}},4058:(e,t,n)=>{var r=n(4792),o=n(5539)(function(e,t,n){return t=t.toLowerCase(),e+(n?r(t):t)});e.exports=o},4248:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},4335:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},4525:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,l=void 0;try{for(var i,a=e[Symbol.iterator]();!(r=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,l=e}finally{try{!r&&a.return&&a.return()}finally{if(o)throw l}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var l,i=n(3675),a=(l=i)&&l.__esModule?l:{default:l},s=function(e){return e};t.default=function(e){var t=Array.isArray(e)&&2===e.length?e:[e,null],n=r(t,2),l=n[0],i=n[1];return function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var c=n.map(function(e){return l[e]}).filter(s);return"string"==typeof c[0]||"function"==typeof i?{key:e,className:i?i.apply(void 0,o(c)):c.join(" ")}:{key:e,style:a.default.apply(void 0,[{}].concat(o(c)))}}},e.exports=t.default},4739:(e,t,n)=>{var r=n(6025);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},4792:(e,t,n)=>{var r=n(3222),o=n(5808);e.exports=function(e){return o(r(e).toLowerCase())}},4840:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},4848:(e,t,n)=>{"use strict";e.exports=n(1020)},4894:(e,t,n)=>{var r=n(1882),o=n(294);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},4974:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},5056:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},5072:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var l={},i=[],a=0;a<e.length;a++){var s=e[a],c=r.base?s[0]+r.base:s[0],u=l[c]||0,p="".concat(c," ").concat(u);l[c]=u+1;var m=n(p),d={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==m)t[m].references++,t[m].updater(d);else{var b=o(d,r);r.byIndex=a,t.splice(a,0,{identifier:p,updater:b,references:1})}i.push(p)}return i}function o(e,t){var n=t.domAPI(t);n.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var l=r(e=e||[],o=o||{});return function(e){e=e||[];for(var i=0;i<l.length;i++){var a=n(l[i]);t[a].references--}for(var s=r(e,o),c=0;c<l.length;c++){var u=n(l[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}l=s}}},5160:e=>{e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var l=Array(o);++r<o;)l[r]=e[r+t];return l}},5250:(e,t,n)=>{var r=n(7217),o=n(7805),l=n(6649),i=n(2824),a=n(3805),s=n(7241),c=n(4974);e.exports=function e(t,n,u,p,m){t!==n&&l(n,function(l,s){if(m||(m=new r),a(l))i(t,n,s,u,e,p,m);else{var d=p?p(c(t,s),l,s+"",t,n,m):void 0;void 0===d&&(d=l),o(t,s,d)}},s)}},5287:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),d=Symbol.iterator;var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f=Object.assign,g={};function h(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||b}function y(){}function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||b}h.prototype.isReactComponent={},h.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},h.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=h.prototype;var k=v.prototype=new y;k.constructor=v,f(k,h.prototype),k.isPureReactComponent=!0;var _=Array.isArray,w=Object.prototype.hasOwnProperty,S={current:null},A={key:!0,ref:!0,__self:!0,__source:!0};function I(e,t,r){var o,l={},i=null,a=null;if(null!=t)for(o in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)w.call(t,o)&&!A.hasOwnProperty(o)&&(l[o]=t[o]);var s=arguments.length-2;if(1===s)l.children=r;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];l.children=c}if(e&&e.defaultProps)for(o in s=e.defaultProps)void 0===l[o]&&(l[o]=s[o]);return{$$typeof:n,type:e,key:i,ref:a,props:l,_owner:S.current}}function x(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var C=/\/+/g;function q(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function E(e,t,o,l,i){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var s=!1;if(null===e)s=!0;else switch(a){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case n:case r:s=!0}}if(s)return i=i(s=e),e=""===l?"."+q(s,0):l,_(i)?(o="",null!=e&&(o=e.replace(C,"$&/")+"/"),E(i,t,o,"",function(e){return e})):null!=i&&(x(i)&&(i=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,o+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(C,"$&/")+"/")+e)),t.push(i)),1;if(s=0,l=""===l?".":l+":",_(e))for(var c=0;c<e.length;c++){var u=l+q(a=e[c],c);s+=E(a,t,o,u,i)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(a=e.next()).done;)s+=E(a=a.value,t,o,u=l+q(a,c++),i);else if("object"===a)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function T(e,t,n){if(null==e)return e;var r=[],o=0;return E(e,r,"","",function(e){return t.call(n,e,o++)}),r}function O(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var P={current:null},N={transition:null},B={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:N,ReactCurrentOwner:S};function R(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:T,forEach:function(e,t,n){T(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return T(e,function(){t++}),t},toArray:function(e){return T(e,function(e){return e})||[]},only:function(e){if(!x(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=h,t.Fragment=o,t.Profiler=i,t.PureComponent=v,t.StrictMode=l,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=B,t.act=R,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=f({},e.props),l=e.key,i=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,a=S.current),void 0!==t.key&&(l=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)w.call(t,c)&&!A.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==s?s[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){s=Array(c);for(var u=0;u<c;u++)s[u]=arguments[u+2];o.children=s}return{$$typeof:n,type:e.type,key:l,ref:i,props:o,_owner:a}},t.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=I,t.createFactory=function(e){var t=I.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=x,t.lazy=function(e){return{$$typeof:m,_payload:{_status:-1,_result:e},_init:O}},t.memo=function(e,t){return{$$typeof:p,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=N.transition;N.transition={};try{e()}finally{N.transition=t}},t.unstable_act=R,t.useCallback=function(e,t){return P.current.useCallback(e,t)},t.useContext=function(e){return P.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return P.current.useDeferredValue(e)},t.useEffect=function(e,t){return P.current.useEffect(e,t)},t.useId=function(){return P.current.useId()},t.useImperativeHandle=function(e,t,n){return P.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return P.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return P.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return P.current.useMemo(e,t)},t.useReducer=function(e,t,n){return P.current.useReducer(e,t,n)},t.useRef=function(e){return P.current.useRef(e)},t.useState=function(e){return P.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return P.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return P.current.useTransition()},t.version="18.3.1"},5288:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},5364:(e,t,n)=>{var r=n(5250),o=n(999)(function(e,t,n){r(e,t,n)});e.exports=o},5434:e=>{var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},5527:e=>{e.exports=function(){return!1}},5529:(e,t,n)=>{var r=n(9344),o=n(8879),l=n(5527);e.exports=function(e){return"function"!=typeof e.constructor||l(e)?{}:r(o(e))}},5539:(e,t,n)=>{var r=n(882),o=n(828),l=n(6645),i=RegExp("['’]","g");e.exports=function(e){return function(t){return r(l(o(t).replace(i,"")),e,"")}}},5556:(e,t,n)=>{e.exports=n(2694)()},5808:(e,t,n)=>{var r=n(2507)("toUpperCase");e.exports=r},5861:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5911:(e,t,n)=>{var r=n(8859),o=n(4248),l=n(9219);e.exports=function(e,t,n,i,a,s){var c=1&n,u=e.length,p=t.length;if(u!=p&&!(c&&p>u))return!1;var m=s.get(e),d=s.get(t);if(m&&d)return m==t&&d==e;var b=-1,f=!0,g=2&n?new r:void 0;for(s.set(e,t),s.set(t,e);++b<u;){var h=e[b],y=t[b];if(i)var v=c?i(y,h,b,t,e,s):i(h,y,b,e,t,s);if(void 0!==v){if(v)continue;f=!1;break}if(g){if(!o(t,function(e,t){if(!l(g,t)&&(h===e||a(h,e,n,i,s)))return g.push(t)})){f=!1;break}}else if(h!==y&&!a(h,y,n,i,s)){f=!1;break}}return s.delete(e),s.delete(t),f}},6025:(e,t,n)=>{var r=n(5288);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},6110:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},6131:e=>{e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},6314:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n}).join("")},t.i=function(e,n,r,o,l){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(r)for(var a=0;a<this.length;a++){var s=this[a][0];null!=s&&(i[s]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);r&&i[u[0]]||(void 0!==l&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=l),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},6449:e=>{var t=Array.isArray;e.exports=t},6462:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapToAutowhateverTheme=t.defaultTheme=void 0;t.defaultTheme={container:"react-autosuggest__container",containerOpen:"react-autosuggest__container--open",input:"react-autosuggest__input",inputOpen:"react-autosuggest__input--open",inputFocused:"react-autosuggest__input--focused",suggestionsContainer:"react-autosuggest__suggestions-container",suggestionsContainerOpen:"react-autosuggest__suggestions-container--open",suggestionsList:"react-autosuggest__suggestions-list",suggestion:"react-autosuggest__suggestion",suggestionFirst:"react-autosuggest__suggestion--first",suggestionHighlighted:"react-autosuggest__suggestion--highlighted",sectionContainer:"react-autosuggest__section-container",sectionContainerFirst:"react-autosuggest__section-container--first",sectionTitle:"react-autosuggest__section-title"};t.mapToAutowhateverTheme=function(e){var t={};for(var n in e)switch(n){case"suggestionsContainer":t.itemsContainer=e[n];break;case"suggestionsContainerOpen":t.itemsContainerOpen=e[n];break;case"suggestion":t.item=e[n];break;case"suggestionFirst":t.itemFirst=e[n];break;case"suggestionHighlighted":t.itemHighlighted=e[n];break;case"suggestionsList":t.itemsList=e[n];break;default:t[n]=e[n]}return t}},6540:(e,t,n)=>{"use strict";e.exports=n(5287)},6547:(e,t,n)=>{var r=n(3360),o=n(5288),l=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var i=e[t];l.call(e,t)&&o(i,n)&&(void 0!==n||t in e)||r(e,t,n)}},6645:(e,t,n)=>{var r=n(1733),o=n(5434),l=n(3222),i=n(2225);e.exports=function(e,t,n){return e=l(e),void 0===(t=n?void 0:t)?o(e)?i(e):r(e):e.match(t)||[]}},6649:(e,t,n)=>{var r=n(3221)();e.exports=r},6757:(e,t,n)=>{var r=n(1033),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var l=arguments,i=-1,a=o(l.length-t,0),s=Array(a);++i<a;)s[i]=l[t+i];i=-1;for(var c=Array(t+1);++i<t;)c[i]=l[i];return c[t]=n(s),r(e,this,c)}}},6800:e=>{e.exports=function(){return!1}},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,l(n)))}return e}function l(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=i(t,n));return t}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},7068:(e,t,n)=>{var r=n(7217),o=n(5911),l=n(1986),i=n(689),a=n(5861),s=n(6449),c=n(3656),u=n(7167),p="[object Arguments]",m="[object Array]",d="[object Object]",b=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,f,g,h){var y=s(e),v=s(t),k=y?m:a(e),_=v?m:a(t),w=(k=k==p?d:k)==d,S=(_=_==p?d:_)==d,A=k==_;if(A&&c(e)){if(!c(t))return!1;y=!0,w=!1}if(A&&!w)return h||(h=new r),y||u(e)?o(e,t,n,f,g,h):l(e,t,k,n,f,g,h);if(!(1&n)){var I=w&&b.call(e,"__wrapped__"),x=S&&b.call(t,"__wrapped__");if(I||x){var C=I?e.value():e,q=x?t.value():t;return h||(h=new r),g(C,q,n,f,h)}}return!!A&&(h||(h=new r),i(e,t,n,f,g,h))}},7167:e=>{e.exports=function(){return!1}},7217:(e,t,n)=>{var r=n(3702),o=n(80),l=n(4739),i=n(8655),a=n(1175);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=l,s.prototype.has=i,s.prototype.set=a,e.exports=s},7241:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},7424:(e,t,n)=>{"use strict";t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!=typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var l=r?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(6540)),o=s(n(5556)),l=s(n(9321)),i=s(n(3486)),a=n(6462);function s(e){return e&&e.__esModule?e:{default:e}}function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e){return function(){var t,n=g(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=g(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;return f(e)}(this,t)}}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=function(){return!0},k="suggestions-revealed",_="input-focused",w="input-changed",S="escape-pressed",A=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(c,e);var t,n,o,s=b(c);function c(e){var t,n=e.alwaysRenderSuggestions;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),y(f(t=s.call(this)),"onDocumentMouseDown",function(e){t.justClickedOnSuggestionsContainer=!1;for(var n=e.detail&&e.detail.target||e.target;null!==n&&n!==document;){if(n.getAttribute&&null!==n.getAttribute("data-suggestion-index"))return;if(n===t.suggestionsContainer)return void(t.justClickedOnSuggestionsContainer=!0);n=n.parentNode}}),y(f(t),"storeAutowhateverRef",function(e){null!==e&&(t.autowhatever=e)}),y(f(t),"onSuggestionMouseEnter",function(e,n){var r=n.sectionIndex,o=n.itemIndex;t.updateHighlightedSuggestion(r,o),e.target===t.pressedSuggestion&&(t.justSelectedSuggestion=!0),t.justMouseEntered=!0,setTimeout(function(){t.justMouseEntered=!1})}),y(f(t),"highlightFirstSuggestion",function(){t.updateHighlightedSuggestion(t.props.multiSection?0:null,0)}),y(f(t),"onDocumentMouseUp",function(){t.pressedSuggestion&&!t.justSelectedSuggestion&&t.input.focus(),t.pressedSuggestion=null}),y(f(t),"onSuggestionMouseDown",function(e){t.justSelectedSuggestion||(t.justSelectedSuggestion=!0,t.pressedSuggestion=e.target)}),y(f(t),"onSuggestionsClearRequested",function(){var e=t.props.onSuggestionsClearRequested;e&&e()}),y(f(t),"onSuggestionSelected",function(e,n){var r=t.props,o=r.alwaysRenderSuggestions,l=r.onSuggestionSelected,i=r.onSuggestionsFetchRequested;l&&l(e,n);var a=t.props.shouldKeepSuggestionsOnSelect(n.suggestion);o||a?i({value:n.suggestionValue,reason:"suggestion-selected"}):t.onSuggestionsClearRequested(),t.resetHighlightedSuggestion()}),y(f(t),"onSuggestionClick",function(e){var n=t.props,r=n.alwaysRenderSuggestions,o=n.focusInputOnSuggestionClick,l=t.getSuggestionIndices(t.findSuggestionElement(e.target)),i=l.sectionIndex,a=l.suggestionIndex,s=t.getSuggestion(i,a),c=t.props.getSuggestionValue(s);t.maybeCallOnChange(e,c,"click"),t.onSuggestionSelected(e,{suggestion:s,suggestionValue:c,suggestionIndex:a,sectionIndex:i,method:"click"});var u=t.props.shouldKeepSuggestionsOnSelect(s);r||u||t.closeSuggestions(),!0===o?t.input.focus():t.onBlur(),setTimeout(function(){t.justSelectedSuggestion=!1})}),y(f(t),"onBlur",function(){var e=t.props,n=e.inputProps,r=e.shouldRenderSuggestions,o=n.value,l=n.onBlur,i=t.getHighlightedSuggestion(),a=r(o,"input-blurred");t.setState({isFocused:!1,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!a}),l&&l(t.blurEvent,{highlightedSuggestion:i})}),y(f(t),"onSuggestionMouseLeave",function(e){t.resetHighlightedSuggestion(!1),t.justSelectedSuggestion&&e.target===t.pressedSuggestion&&(t.justSelectedSuggestion=!1)}),y(f(t),"onSuggestionTouchStart",function(){t.justSelectedSuggestion=!0}),y(f(t),"onSuggestionTouchMove",function(){t.justSelectedSuggestion=!1,t.pressedSuggestion=null,t.input.focus()}),y(f(t),"itemProps",function(e){return{"data-section-index":e.sectionIndex,"data-suggestion-index":e.itemIndex,onMouseEnter:t.onSuggestionMouseEnter,onMouseLeave:t.onSuggestionMouseLeave,onMouseDown:t.onSuggestionMouseDown,onTouchStart:t.onSuggestionTouchStart,onTouchMove:t.onSuggestionTouchMove,onClick:t.onSuggestionClick}}),y(f(t),"renderSuggestionsContainer",function(e){var n=e.containerProps,r=e.children;return(0,t.props.renderSuggestionsContainer)({containerProps:n,children:r,query:t.getQuery()})}),t.state={isFocused:!1,isCollapsed:!n,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null},t.justPressedUpDown=!1,t.justMouseEntered=!1,t.pressedSuggestion=null,t}return t=c,n=[{key:"componentDidMount",value:function(){document.addEventListener("mousedown",this.onDocumentMouseDown),document.addEventListener("mouseup",this.onDocumentMouseUp),this.input=this.autowhatever.input,this.suggestionsContainer=this.autowhatever.itemsContainer}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=0===this.state.highlightedSuggestionIndex&&this.props.highlightFirstSuggestion&&!e.highlightFirstSuggestion;(0,l.default)(e.suggestions,this.props.suggestions)?e.highlightFirstSuggestion&&e.suggestions.length>0&&!1===this.justPressedUpDown&&!1===this.justMouseEntered?this.highlightFirstSuggestion():t&&this.resetHighlightedSuggestion():this.willRenderSuggestions(e,"suggestions-updated")?(this.state.isCollapsed&&!this.justSelectedSuggestion&&this.revealSuggestions(),t&&this.resetHighlightedSuggestion()):this.resetHighlightedSuggestion()}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.suggestions,o=n.onSuggestionHighlighted,i=n.highlightFirstSuggestion;if(!(0,l.default)(r,e.suggestions)&&r.length>0&&i)this.highlightFirstSuggestion();else if(o){var a=this.getHighlightedSuggestion();a!=t.highlightedSuggestion&&o({suggestion:a})}}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.onDocumentMouseDown),document.removeEventListener("mouseup",this.onDocumentMouseUp)}},{key:"updateHighlightedSuggestion",value:function(e,t,n){var r=this;this.setState(function(o){var l=o.valueBeforeUpDown;return null===t?l=null:null===l&&void 0!==n&&(l=n),{highlightedSectionIndex:e,highlightedSuggestionIndex:t,highlightedSuggestion:null===t?null:r.getSuggestion(e,t),valueBeforeUpDown:l}})}},{key:"resetHighlightedSuggestion",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.setState(function(t){var n=t.valueBeforeUpDown;return{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:e?null:n}})}},{key:"revealSuggestions",value:function(){this.setState({isCollapsed:!1})}},{key:"closeSuggestions",value:function(){this.setState({highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!0})}},{key:"getSuggestion",value:function(e,t){var n=this.props,r=n.suggestions,o=n.multiSection,l=n.getSectionSuggestions;return o?l(r[e])[t]:r[t]}},{key:"getHighlightedSuggestion",value:function(){var e=this.state,t=e.highlightedSectionIndex,n=e.highlightedSuggestionIndex;return null===n?null:this.getSuggestion(t,n)}},{key:"getSuggestionValueByIndex",value:function(e,t){return(0,this.props.getSuggestionValue)(this.getSuggestion(e,t))}},{key:"getSuggestionIndices",value:function(e){var t=e.getAttribute("data-section-index"),n=e.getAttribute("data-suggestion-index");return{sectionIndex:"string"==typeof t?parseInt(t,10):null,suggestionIndex:parseInt(n,10)}}},{key:"findSuggestionElement",value:function(e){var t=e;do{if(t.getAttribute&&null!==t.getAttribute("data-suggestion-index"))return t;t=t.parentNode}while(null!==t);throw console.error("Clicked element:",e),new Error("Couldn't find suggestion element")}},{key:"maybeCallOnChange",value:function(e,t,n){var r=this.props.inputProps,o=r.value,l=r.onChange;t!==o&&l(e,{newValue:t,method:n})}},{key:"willRenderSuggestions",value:function(e,t){var n=e.suggestions,r=e.inputProps,o=e.shouldRenderSuggestions,l=r.value;return n.length>0&&o(l,t)}},{key:"getQuery",value:function(){var e=this.props.inputProps.value,t=this.state.valueBeforeUpDown;return(null===t?e:t).trim()}},{key:"render",value:function(){var e=this,t=this.props,n=t.suggestions,o=t.renderInputComponent,l=t.onSuggestionsFetchRequested,s=t.renderSuggestion,c=t.inputProps,u=t.multiSection,p=t.renderSectionTitle,d=t.id,b=t.getSectionSuggestions,f=t.theme,g=t.getSuggestionValue,h=t.alwaysRenderSuggestions,y=t.highlightFirstSuggestion,A=t.containerProps,I=this.state,x=I.isFocused,C=I.isCollapsed,q=I.highlightedSectionIndex,E=I.highlightedSuggestionIndex,T=I.valueBeforeUpDown,O=h?v:this.props.shouldRenderSuggestions,P=c.value,N=c.onFocus,B=c.onKeyDown,R=this.willRenderSuggestions(this.props,"render"),D=h||x&&!C&&R,M=D?n:[],j=m({},c,{onFocus:function(t){if(!e.justSelectedSuggestion&&!e.justClickedOnSuggestionsContainer){var n=O(P,_);e.setState({isFocused:!0,isCollapsed:!n}),N&&N(t),n&&l({value:P,reason:_})}},onBlur:function(t){e.justClickedOnSuggestionsContainer?e.input.focus():(e.blurEvent=t,e.justSelectedSuggestion||(e.onBlur(),e.onSuggestionsClearRequested()))},onChange:function(t){var n=t.target.value,r=O(n,w);e.maybeCallOnChange(t,n,"type"),e.suggestionsContainer&&(e.suggestionsContainer.scrollTop=0),e.setState(m({},y?{}:{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null},{valueBeforeUpDown:null,isCollapsed:!r})),r?l({value:n,reason:w}):e.onSuggestionsClearRequested()},onKeyDown:function(t,r){var o=t.keyCode;switch(o){case 40:case 38:if(C)O(P,k)&&(l({value:P,reason:k}),e.revealSuggestions(),t.preventDefault());else if(n.length>0){var i,a=r.newHighlightedSectionIndex,s=r.newHighlightedItemIndex;i=null===s?null===T?P:T:e.getSuggestionValueByIndex(a,s),e.updateHighlightedSuggestion(a,s,P),e.maybeCallOnChange(t,i,40===o?"down":"up"),t.preventDefault()}e.justPressedUpDown=!0,setTimeout(function(){e.justPressedUpDown=!1});break;case 13:if(229===t.keyCode)break;var c=e.getHighlightedSuggestion();if(D&&!h&&e.closeSuggestions(),null!=c){t.preventDefault();var u=g(c);e.maybeCallOnChange(t,u,"enter"),e.onSuggestionSelected(t,{suggestion:c,suggestionValue:u,suggestionIndex:E,sectionIndex:q,method:"enter"}),e.justSelectedSuggestion=!0,setTimeout(function(){e.justSelectedSuggestion=!1})}break;case 27:D&&t.preventDefault();var p=D&&!h;null===T?p||(e.maybeCallOnChange(t,"","escape"),O("",S)?l({value:"",reason:S}):e.onSuggestionsClearRequested()):e.maybeCallOnChange(t,T,"escape"),p?(e.onSuggestionsClearRequested(),e.closeSuggestions()):e.resetHighlightedSuggestion()}B&&B(t)}}),L={query:this.getQuery()};return r.default.createElement(i.default,{multiSection:u,items:M,renderInputComponent:o,renderItemsContainer:this.renderSuggestionsContainer,renderItem:s,renderItemData:L,renderSectionTitle:p,getSectionItems:b,highlightedSectionIndex:q,highlightedItemIndex:E,containerProps:A,inputProps:j,itemProps:this.itemProps,theme:(0,a.mapToAutowhateverTheme)(f),id:d,ref:this.storeAutowhateverRef})}}],n&&d(t.prototype,n),o&&d(t,o),c}(r.Component);t.default=A,y(A,"propTypes",{suggestions:o.default.array.isRequired,onSuggestionsFetchRequested:function(e,t){var n=e[t];if("function"!=typeof n)throw new Error("'onSuggestionsFetchRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsFetchRequestedProp")},onSuggestionsClearRequested:function(e,t){var n=e[t];if(!1===e.alwaysRenderSuggestions&&"function"!=typeof n)throw new Error("'onSuggestionsClearRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsClearRequestedProp")},shouldKeepSuggestionsOnSelect:o.default.func,onSuggestionSelected:o.default.func,onSuggestionHighlighted:o.default.func,renderInputComponent:o.default.func,renderSuggestionsContainer:o.default.func,getSuggestionValue:o.default.func.isRequired,renderSuggestion:o.default.func.isRequired,inputProps:function(e,t){var n=e[t];if(!n)throw new Error("'inputProps' must be passed.");if(!Object.prototype.hasOwnProperty.call(n,"value"))throw new Error("'inputProps' must have 'value'.");if(!Object.prototype.hasOwnProperty.call(n,"onChange"))throw new Error("'inputProps' must have 'onChange'.")},shouldRenderSuggestions:o.default.func,alwaysRenderSuggestions:o.default.bool,multiSection:o.default.bool,renderSectionTitle:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!=typeof n)throw new Error("'renderSectionTitle' must be implemented. See: https://github.com/moroshko/react-autosuggest#renderSectionTitleProp")},getSectionSuggestions:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!=typeof n)throw new Error("'getSectionSuggestions' must be implemented. See: https://github.com/moroshko/react-autosuggest#getSectionSuggestionsProp")},focusInputOnSuggestionClick:o.default.bool,highlightFirstSuggestion:o.default.bool,theme:o.default.object,id:o.default.string,containerProps:o.default.object}),y(A,"defaultProps",{renderSuggestionsContainer:function(e){var t=e.containerProps,n=e.children;return r.default.createElement("div",t,n)},shouldRenderSuggestions:function(e){return e.trim().length>0},alwaysRenderSuggestions:!1,multiSection:!1,shouldKeepSuggestionsOnSelect:function(){return!1},focusInputOnSuggestionClick:!0,highlightFirstSuggestion:!1,theme:a.defaultTheme,id:"1",containerProps:{}})},7556:e=>{e.exports=function(e){return e}},7659:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},7805:(e,t,n)=>{var r=n(3360),o=n(5288);e.exports=function(e,t,n){(void 0!==n&&!o(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},7825:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var l=n.sourceMap;l&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(l))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},7828:(e,t,n)=>{var r=n(9325).Uint8Array;e.exports=r},7932:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==c(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var l=r?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(6540)),o=a(n(5556)),l=a(n(1572)),i=a(n(1438));function a(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e){return function(){var t,n=f(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=f(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;return b(e)}(this,t)}}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(s,e);var t,n,o,a=d(s);function s(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return h(b(e=a.call.apply(a,[this].concat(n))),"storeHighlightedItemReference",function(t){e.props.onHighlightedItemChange(null===t?null:t.item)}),e}return t=s,n=[{key:"shouldComponentUpdate",value:function(e){return(0,i.default)(e,this.props,["itemProps"])}},{key:"render",value:function(){var e=this,t=this.props,n=t.items,o=t.itemProps,i=t.renderItem,a=t.renderItemData,s=t.sectionIndex,c=t.highlightedItemIndex,m=t.getItemId,d=t.theme,b=t.keyPrefix,f=null===s?b:"".concat(b,"section-").concat(s,"-"),g="function"==typeof o;return r.default.createElement("ul",u({role:"listbox"},d("".concat(f,"items-list"),"itemsList")),n.map(function(t,n){var b=0===n,y=n===c,v="".concat(f,"item-").concat(n),k=g?o({sectionIndex:s,itemIndex:n}):o,_=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){h(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({id:m(s,n),"aria-selected":y},d(v,"item",b&&"itemFirst",y&&"itemHighlighted"),{},k);return y&&(_.ref=e.storeHighlightedItemReference),r.default.createElement(l.default,u({},_,{sectionIndex:s,isHighlighted:y,itemIndex:n,item:t,renderItem:i,renderItemData:a}))}))}}],n&&m(t.prototype,n),o&&m(t,o),s}(r.Component);t.default=y,h(y,"propTypes",{items:o.default.array.isRequired,itemProps:o.default.oneOfType([o.default.object,o.default.func]),renderItem:o.default.func.isRequired,renderItemData:o.default.object.isRequired,sectionIndex:o.default.number,highlightedItemIndex:o.default.number,onHighlightedItemChange:o.default.func.isRequired,getItemId:o.default.func.isRequired,theme:o.default.func.isRequired,keyPrefix:o.default.string.isRequired}),h(y,"defaultProps",{sectionIndex:null})},8655:(e,t,n)=>{var r=n(6025);e.exports=function(e){return r(this.__data__,e)>-1}},8754:(e,t,n)=>{var r=n(5160);e.exports=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:r(e,t,n)}},8859:(e,t,n)=>{var r=n(6449);e.exports=function(){if(!arguments.length)return[];var e=arguments[0];return r(e)?e:[e]}},8879:(e,t,n)=>{var r=n(4335)(Object.getPrototypeOf,Object);e.exports=r},8930:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(1601),o=n.n(r),l=n(6314),i=n.n(l)()(o());i.push([e.id,"",""]);const a=i},9219:(e,t,n)=>{var r=n(6131);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},9302:(e,t,n)=>{var r=n(3488),o=n(6757),l=n(2865);e.exports=function(e,t){return l(o(e,t,r),e+"")}},9321:e=>{"use strict";e.exports=function(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=e.length;if(t.length!==n)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}},9325:(e,t,n)=>{var r=n(4840),o="object"==typeof self&&self&&self.Object===Object&&self,l=r||o||Function("return this")();e.exports=l},9344:(e,t,n)=>{var r=n(3805),o=Object.create,l=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=l},9653:(e,t,n)=>{var r=n(7828);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},9698:e=>{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},9884:(e,t,n)=>{var r=n(1791),o=n(7241);e.exports=function(e){return r(e,o(e))}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var l=t[r]={id:r,loaded:!1,exports:{}};return e[r](l,l.exports,n),l.loaded=!0,l.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.nc=void 0,(()=>{"use strict";const e=wp.i18n,t=wp.blocks;var r=n(4058),o=n.n(r);const l=wp.hooks,i=wp.data;var a,s=n(6540);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(null,arguments)}const u=e=>s.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 24 24"},e),a||(a=s.createElement("path",{d:"M13 18h2c.6 0 1 .4 1 1s-.4 1-1 1H9c-.6 0-1-.4-1-1s.4-1 1-1h2v-2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2h16c1.1 0 2 .9 2 2v8c0 1.1-.9 2-2 2h-7zM4 6v8h16V6z"})));var p;function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m.apply(null,arguments)}const d=e=>s.createElement("svg",m({xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 24 24"},e),p||(p=s.createElement("path",{d:"M6 4v15h12V4zm0-2h12c1.1 0 2 .9 2 2v16c0 1.1-.9 2-2 2H6c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2"})));var b;function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(null,arguments)}const g=e=>s.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 24 24"},e),b||(b=s.createElement("path",{d:"M8 2h8c1.1 0 2 .9 2 2v16c0 1.1-.9 2-2 2H8c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2m0 2v15h8V4z"}))),h="desktop",y={desktop:{label:(0,e.__)("Desktop","qi-blocks"),icon:wp.element.createElement(u,null)},tablet:{label:(0,e.__)("Tablet","qi-blocks"),icon:wp.element.createElement(d,null)},mobile:{label:(0,e.__)("Mobile","qi-blocks"),icon:wp.element.createElement(g,null)}};let v=h;const k=()=>v,_=wp.components,w=e=>{const t={...e},{blockAttributeKey:n,blockAttributes:r,setAttributes:o,repeater:l,repeaterItemIndex:i,repeaterItemKey:a,repeaterSetAttributes:s,repeaterGetAttributes:c}=t;return t.getAttributeValue=()=>{let e=r[n];return l&&(e=c(a,i)),e||!1},t.setAttributeValue=e=>{l?s(a,e,i):o({[n]:e})},wp.element.createElement("div",{className:"qodef-on-off-option"},wp.element.createElement(_.ToggleControl,{label:t.label,help:t.help,checked:t.getAttributeValue(),onChange:()=>t.setAttributeValue(!t.getAttributeValue())}))};w.defaultProps={label:(0,e.__)("Show","qi-blocks"),help:"",blockAttributeKey:"",blockAttributes:{},setAttributes:()=>{},repeater:!1,repeaterItemIndex:0,repeaterItemKey:"",repeaterSetAttributes:()=>{},repeaterGetAttributes:()=>{}};const S=w,A=[{classSuffix:"desktop",label:(0,e.__)("Hide On Desktop","qi-blocks"),blockAttributeKey:"hideOnDesktop"},{classSuffix:"tablet",label:(0,e.__)("Hide On Tablet","qi-blocks"),blockAttributeKey:"hideOnTablet"},{classSuffix:"mobile",label:(0,e.__)("Hide On Mobile","qi-blocks"),blockAttributeKey:"hideOnMobile"}],I=e=>{const t={...e},{label:n,description:r,blockAttributeKeys:o,blockAttributes:l,setAttributes:i}=t;return wp.element.createElement("div",{className:"qodef-visibility-group-option"},n&&wp.element.createElement("label",{className:"qodef-option-label"},n),r&&wp.element.createElement("p",{className:"qodef-option-description"},r),o.map(e=>wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(S,{label:e.label,blockAttributeKey:e.blockAttributeKey,blockAttributes:l,setAttributes:i}))))};I.defaultProps={label:(0,e.__)("Visibility","qi-blocks"),description:(0,e.__)("Responsive visibility will take effect only on preview or live page, and not while editing in Gutenberg.","qi-blocks"),blockAttributeKeys:A,blockAttributes:{},setAttributes:()=>{}};const x=(e,t="")=>{const n=e=>P(t,e),r=[];return e[n("cssClasses")]&&r.push(e[n("cssClasses")]),void 0!==e[n("EntranceAnimation")]&&""!==e[n("EntranceAnimation")]&&(r.push("qodef-entrance-animation--on"),e[n("EntranceAnimationDuration")]&&r.push("qodef-animation-speed--"+e[n("EntranceAnimationDuration")])),e[n("BlockWidth")]&&r.push("qodef-width--"+e[n("BlockWidth")]),e[n("BlockWidthTablet")]&&r.push("qodef-width--tablet--"+e[n("BlockWidthTablet")]),e[n("BlockWidthMobile")]&&r.push("qodef-width--mobile--"+e[n("BlockWidthMobile")]),r.push((e=>{const t=[];return A.map(n=>{const r="qodef-hide-on--"+n.classSuffix,o=e[n.blockAttributeKey];t.includes(r)&&!o?t.filter(function(e){return e!==r}):!t.includes(r)&&o&&t.push(r)}),t.join(" ")})(e)),r.join(" ")},C=(e,t="")=>{let n=["qodef-block-container"];return V(e.uniqueClass,"all")&&n.push(e.uniqueClass),n.push(x(e,t)),n.join(" ")},q=(e,t="")=>{let n={};const r=((e,t="")=>{const n=(e,n="")=>P(t,e,n),r={};return void 0!==e[n("EntranceAnimation")]&&""!==e[n("EntranceAnimation")]&&(r["data-animation"]=e[n("EntranceAnimation")]),"custom"!==e[n("BlockWidth")]&&"custom"!==e[n("BlockWidthTablet")]&&"custom"!==e[n("BlockWidthMobile")]||["","Tablet","Mobile"].forEach(t=>{const o=e[n("BlockCustomWidth",t)],l=e[n("BlockCustomWidthDecimal",t)],i=e[n("BlockCustomWidthUnit",t)];M(i)&&o?r["data-width"+(t?"-"+t.toLowerCase():"")]=parseInt(o,10)+i:j(i)&&l&&(r["data-width"+(t?"-"+t.toLowerCase():"")]=parseFloat(l)+i)}),r})(e,t);return r&&(n={...n,...r}),n},E=(e,t="",n=[])=>O(e,t,n),T=(e,t,n=[])=>{if(!e)return"";let r=[`qi-block-${e}`,"qodef-block","qodef-m"];return V(t.attributes.className,"all")&&r.push(t.attributes.className),n&&(r=[...r,...n]),r.join(" ")},O=(e,t="",n=[])=>{const r=e=>P(t,e);if(!e)return"";let o=[];return V(e[r("cssId")],"all")&&o.push(e[r("cssId")]),n&&(o=[...o,...n]),o.join(" ")},P=(t,n,r)=>(t=t||"",n=n||"",r=r||"",o()((0,e.sprintf)("%s%s%s",t,n,r))),N=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",B=e=>e&&h!==e?N(e):"",R=(e,t)=>{let n=e.desktop;return"mobile"===t&&(n={...n,...e.tablet}),{...n,...e[t]}},D=(e,t=!0)=>{let n="";return Object.entries(e).map(([e,r])=>{n+=`${e.replace(/([A-Z])/g,(e,t,n)=>(n>0?"-":"")+e.toLowerCase())}: ${r} ${t?"!important":""};`}),n},M=e=>["px"].includes(e),j=e=>["em","rem","%","vw","vh"].includes(e),L=(e,t="integer")=>{let n="";return 0===e||"0"===e?n=0:e&&(n=parseInt(e,10),"decimal"===t&&(n=parseFloat(e))),n},V=(e,t="")=>{let n=void 0!==e&&""!==e;return"all"===t&&(n=void 0!==e&&e),n},U=e=>{let t="";return 0===e||"0"===e?t=0:e&&(t=e),t},F=(t,n=!0,r=[])=>{let o=[],i=[];if(t){switch(n&&(o=[{value:"",label:(0,e.__)("Default","qi-blocks")}]),t){case"no_yes":i=[{value:"no",label:(0,e.__)("No","qi-blocks")},{value:"yes",label:(0,e.__)("Yes","qi-blocks")}];break;case"yes_no":i=[{value:"yes",label:(0,e.__)("Yes","qi-blocks")},{value:"no",label:(0,e.__)("No","qi-blocks")}];break;case"link_target":i=[{value:"_self",label:(0,e.__)("Same Window","qi-blocks")},{value:"_blank",label:(0,e.__)("New Window","qi-blocks")}];break;case"column_gap":i=[{value:"huge",label:(0,e.__)("Huge (35)","qi-blocks")},{value:"large",label:(0,e.__)("Large (25)","qi-blocks")},{value:"medium",label:(0,e.__)("Medium (20)","qi-blocks")},{value:"normal",label:(0,e.__)("Normal (15)","qi-blocks")},{value:"small",label:(0,e.__)("Small (10)","qi-blocks")},{value:"tiny",label:(0,e.__)("Tiny (5)","qi-blocks")},{value:"no",label:(0,e.__)("No (0)","qi-blocks")}];break;case"columns_responsive":i=[{value:"predefined",label:(0,e.__)("Predefined","qi-blocks")},{value:"custom",label:(0,e.__)("Custom","qi-blocks")}];break;case"masonry_image_sizes":i=[{value:"square",label:(0,e.__)("Square","qi-blocks")},{value:"landscape",label:(0,e.__)("Landscape","qi-blocks")},{value:"portrait",label:(0,e.__)("Portrait","qi-blocks")},{value:"huge-square",label:(0,e.__)("Huge","qi-blocks")}];break;case"image_sizes":i=[{value:"full",label:(0,e.__)("Original","qi-blocks")},{value:"thumbnail",label:(0,e.__)("Thumbnail","qi-blocks")},{value:"medium",label:(0,e.__)("Medium","qi-blocks")},{value:"large",label:(0,e.__)("Large","qi-blocks")}];break;case"title_tag":i=[{value:"h1",label:(0,e.__)("H1","qi-blocks")},{value:"h2",label:(0,e.__)("H2","qi-blocks")},{value:"h3",label:(0,e.__)("H3","qi-blocks")},{value:"h4",label:(0,e.__)("H4","qi-blocks")},{value:"h5",label:(0,e.__)("H5","qi-blocks")},{value:"h6",label:(0,e.__)("H6","qi-blocks")},{value:"p",label:(0,e.__)("Paragraph","qi-blocks")}];break;case"font_weight":i=[{value:"normal",label:(0,e.__)("Normal","qi-blocks")},{value:"bold",label:(0,e.__)("Bold","qi-blocks")},{value:"100",label:(0,e.__)("Thin (100)","qi-blocks")},{value:"200",label:(0,e.__)("Extra Light (200)","qi-blocks")},{value:"300",label:(0,e.__)("Light (300)","qi-blocks")},{value:"400",label:(0,e.__)("Normal (400)","qi-blocks")},{value:"500",label:(0,e.__)("Medium (500)","qi-blocks")},{value:"600",label:(0,e.__)("Semi Bold (600)","qi-blocks")},{value:"700",label:(0,e.__)("Bold (700)","qi-blocks")},{value:"800",label:(0,e.__)("Extra Bold (800)","qi-blocks")},{value:"900",label:(0,e.__)("Black (900)","qi-blocks")}];break;case"text_transform":i=[{value:"none",label:(0,e.__)("None","qi-blocks")},{value:"uppercase",label:(0,e.__)("Uppercase","qi-blocks")},{value:"lowercase",label:(0,e.__)("Lowercase","qi-blocks")},{value:"capitalize",label:(0,e.__)("Capitalize","qi-blocks")},{value:"normal",label:(0,e.__)("Normal","qi-blocks")}];break;case"font_style":i=[{value:"normal",label:(0,e.__)("Normal","qi-blocks")},{value:"italic",label:(0,e.__)("Italic","qi-blocks")},{value:"oblique",label:(0,e.__)("Oblique","qi-blocks")}];break;case"text_decoration":i=[{value:"none",label:(0,e.__)("None","qi-blocks")},{value:"underline",label:(0,e.__)("Underline","qi-blocks")},{value:"overline",label:(0,e.__)("Overline","qi-blocks")},{value:"line-through",label:(0,e.__)("Line-Through","qi-blocks")}];break;case"background_position":i=[{value:"center center",label:(0,e.__)("Center Center","qi-blocks")},{value:"center left",label:(0,e.__)("Center Left","qi-blocks")},{value:"center right",label:(0,e.__)("Center Right","qi-blocks")},{value:"top center",label:(0,e.__)("Top Center","qi-blocks")},{value:"top left",label:(0,e.__)("Top Left","qi-blocks")},{value:"top right",label:(0,e.__)("Top Right","qi-blocks")},{value:"bottom center",label:(0,e.__)("Bottom Center","qi-blocks")},{value:"bottom left",label:(0,e.__)("Bottom Left","qi-blocks")},{value:"bottom right",label:(0,e.__)("Bottom Right","qi-blocks")}];break;case"background_attachment":i=[{value:"scroll",label:(0,e.__)("Scroll","qi-blocks")},{value:"fixed",label:(0,e.__)("Fixed","qi-blocks")}];break;case"background_repeat":i=[{value:"no-repeat",label:(0,e.__)("No-repeat","qi-blocks")},{value:"repeat",label:(0,e.__)("Repeat","qi-blocks")},{value:"repeat-x",label:(0,e.__)("Repeat-x","qi-blocks")},{value:"repeat-y",label:(0,e.__)("Repeat-y","qi-blocks")}];break;case"background_size":i=[{value:"auto",label:(0,e.__)("Auto","qi-blocks")},{value:"cover",label:(0,e.__)("Cover","qi-blocks")},{value:"contain",label:(0,e.__)("Contain","qi-blocks")}];break;case"horizontal_alignment":i=[{value:"left",label:(0,e.__)("Left","qi-blocks")},{value:"right",label:(0,e.__)("Right","qi-blocks")},{value:"center",label:(0,e.__)("Center","qi-blocks")}];break;case"vertical_alignment":i=[{value:"top",label:(0,e.__)("Top","qi-blocks")},{value:"middle",label:(0,e.__)("Middle","qi-blocks")},{value:"bottom",label:(0,e.__)("Bottom","qi-blocks")}];break;case"html_tag":i=[{value:"section",label:(0,e.__)("Section","qi-blocks")},{value:"div",label:(0,e.__)("Div","qi-blocks")},{value:"main",label:(0,e.__)("Main","qi-blocks")},{value:"article",label:(0,e.__)("Article","qi-blocks")},{value:"nav",label:(0,e.__)("Nav","qi-blocks")},{value:"footer",label:(0,e.__)("Footer","qi-blocks")},{value:"header",label:(0,e.__)("Header","qi-blocks")},{value:"aside",label:(0,e.__)("Aside","qi-blocks")}];break;case"appear_animation":i=[{value:"none",label:(0,e.__)("None","qi-blocks")},{value:"from-bottom",label:(0,e.__)("From Bottom","qi-blocks")},{value:"from-top",label:(0,e.__)("From Top","qi-blocks")},{value:"from-left",label:(0,e.__)("From Left","qi-blocks")},{value:"from-right",label:(0,e.__)("From Right","qi-blocks")},{value:"fade",label:(0,e.__)("Fade in","qi-blocks")}];break;case"appear_delay":i=[{value:"random",label:(0,e.__)("Random","qi-blocks")},{value:"ms",label:(0,e.__)("Set ms","qi-blocks")}];break;case"responsive_screens":i=[{value:"1024",label:(0,e.__)("Below 1024px","qi-blocks")},{value:"768",label:(0,e.__)("Below 768px","qi-blocks")},{value:"680",label:(0,e.__)("Below 680px","qi-blocks")},{value:"480",label:(0,e.__)("Below 480px","qi-blocks")}];break;case"order_by":i=[{value:"date",label:(0,e.__)("Date","qi-blocks")},{value:"id",label:(0,e.__)("ID","qi-blocks")},{value:"title",label:(0,e.__)("Title","qi-blocks")}];break;case"order":i=[{value:"desc",label:(0,e.__)("Descending","qi-blocks")},{value:"asc",label:(0,e.__)("Ascending","qi-blocks")}];break;case"border_style":i=[{value:"solid",label:(0,e.__)("Solid","qi-blocks")},{value:"dashed",label:(0,e.__)("Dashed","qi-blocks")},{value:"dotted",label:(0,e.__)("Dotted","qi-blocks")}]}o=[...o,...i],r&&(o=[...o,...r])}return(0,l.applyFilters)("qi-blocks-filter-options-pool",o)},K=(e,t="",n={cssProp:"",value:""})=>{const{attributes:r,blockAttrName:o,cssProp:l}=e,i=V(e,"all")&&void 0!==e.direction&&e.direction?N(e.direction):"",a=!!V(e,"all")&&(e.customUnitValue??!1);let s={},c={},u={};return Object.entries(y).map(([e])=>{let p=B(e),m="",d=o+i+p,b=o+i+"Decimal"+p,f=r[o+"Unit"+p];(V(r[d])||V(r[b]))&&(M(f)&&V(r[d])&&!a?m=L(r[d])+f:j(f)&&V(r[b])&&!a?m=L(r[b],"decimal")+f:""!==r[d]&&(m=r[d]));const g=e=>{let n=e;if(t.includes("%s")){const r=t.split("%s");n="",r.forEach((t,o)=>{n+=t,o!==r.length-1&&(n+=e)})}return n};if(m)switch(e){case"desktop":s[l]=t?g(m):m,n.cssProp&&n.value&&(s[n.cssProp]=n.value);break;case"tablet":c[l]=t?g(m):m,n.cssProp&&n.value&&(c[n.cssProp]=n.value);break;case"mobile":u[l]=t?g(m):m,n.cssProp&&n.value&&(u[n.cssProp]=n.value)}}),{desktop:s,tablet:c,mobile:u}},H=()=>({hideOnDesktop:{type:"boolean",default:!1},hideOnTablet:{type:"boolean",default:!1},hideOnMobile:{type:"boolean",default:!1}}),z=e=>{const{attrNameTemplate:t,attrName:n}=e,r=e=>P(t,n,e),o=!V(e,"all")||(e.allowUnitControl??!0),l=V(e,"all")&&e.disableDirections||[];let i={};return["Top","Right","Bottom","Left"].map(e=>{l.includes(e)||(i[r(e)]={type:"number",default:""},i[r(e+"Tablet")]={type:"number",default:""},i[r(e+"Mobile")]={type:"number",default:""},o&&(i[r(`${e}Decimal`)]={type:"number",default:""},i[r(`${e}DecimalTablet`)]={type:"number",default:""},i[r(`${e}DecimalMobile`)]={type:"number",default:""}))}),i[r("Unit")]={type:"string",default:"px"},i[r("UnitTablet")]={type:"string",default:"px"},i[r("UnitMobile")]={type:"string",default:"px"},i};z.defaultProps={attrNameTemplate:"",attrName:"",allowUnitControl:!0};const G=z,$=e=>{const{blockAttributeKey:t}=e,n=!!V(e,"all")&&(e.allowScreens??!1),r=!V(e,"all")||(e.allowUnits??!0),o=V(e,"all")&&e.optionType||"integer",l=V(e,"all")&&e.defaultValue||"",i="decimal"===o?l:"";let a={};return"integer"===o&&(a[t]={type:"number",default:l}),a[P(t,"Unit")]={type:"string",default:"px"},(r||"decimal"===o)&&(a[P(t,"Decimal")]={type:"number",default:i}),n&&(a[P(t,"Tablet")]={type:"number",default:""},a[P(t,"Mobile")]={type:"number",default:""},a[P(t,"UnitTablet")]={type:"string",default:"px"},a[P(t,"UnitMobile")]={type:"string",default:"px"},r&&(a[P(t,"DecimalTablet")]={type:"number",default:""},a[P(t,"DecimalMobile")]={type:"number",default:""})),a};$.defaultProps={allowScreens:!1,allowUnits:!0};const W=$,Y=e=>{const t=V(e,"all")&&e.attrNameTemplate||"",n=V(e,"all")&&e.attrName||"Background",r=e=>P(t,n+e),o=W({blockAttributeKey:r("XPosition"),allowScreens:!0}),l=W({blockAttributeKey:r("YPosition"),allowScreens:!0}),i=W({blockAttributeKey:r("SizeWidth"),allowScreens:!0});return{[r("Image")]:{type:"object",default:{id:null,url:"",alt:"",caption:""}},[r("ImageTablet")]:{type:"object",default:{id:null,url:"",alt:"",caption:""}},[r("ImageMobile")]:{type:"object",default:{id:null,url:"",alt:"",caption:""}},[r("Position")]:{type:"string",default:""},[r("PositionTablet")]:{type:"string",default:""},[r("PositionMobile")]:{type:"string",default:""},...o,...l,[r("Attachment")]:{type:"string",default:""},[r("Repeat")]:{type:"string",default:""},[r("RepeatTablet")]:{type:"string",default:""},[r("RepeatMobile")]:{type:"string",default:""},[r("Size")]:{type:"string",default:""},[r("SizeTablet")]:{type:"string",default:""},[r("SizeMobile")]:{type:"string",default:""},...i}};Y.defaultProps={attrNameTemplate:"",attrName:"Background"};const X=Y,Z=e=>{const t=V(e,"all")&&e.attrNameTemplate||"",n=e=>P(t,e),r=!!V(e,"all")&&(e.includeVideoBG??!1),o=X({attrNameTemplate:t});let l={[n("BackgroundType")]:{type:"string",default:""},[n("BackgroundColor")]:{type:"string",default:""},...o,[n("BackgroundGradientColor1")]:{type:"string",default:""},[n("BackgroundGradientLocation1")]:{type:"number",default:""},[n("BackgroundGradientColor2")]:{type:"string",default:""},[n("BackgroundGradientLocation2")]:{type:"number",default:""},[n("BackgroundGradientType")]:{type:"string",default:"linear"},[n("BackgroundGradientTypeAngle")]:{type:"number",default:""},[n("BackgroundGradientTypePosition")]:{type:"string",default:"center center"}};if(r){const e={[n("BackgroundVideoLink")]:{type:"object",default:{id:null,url:"",alt:""}},[n("BackgroundVideoStartTime")]:{type:"number",default:""},[n("BackgroundVideoEndTime")]:{type:"number",default:""},[n("BackgroundVideoStartTime")]:{type:"number",default:""},[n("BackgroundVideoPlayOnce")]:{type:"boolean",default:!1},[n("BackgroundVideoPlayOnMobile")]:{type:"boolean",default:!1},[n("BackgroundVideoFallbackImage")]:{type:"object",default:{id:null,url:"",alt:""}}};l={...l,...e}}return l};Z.defaultProps={attrNameTemplate:"",includeVideoBG:!1};const J=Z,Q=e=>{const t=V(e,"all")&&e.attrNameTemplate||"",n=V(e,"all")&&e.attrName||"",r=V(e,"all")&&e.defaultValue||"",o=e=>P(t,n+e);return{[o("")]:{type:"string",default:r},[o("Tablet")]:{type:"string",default:""},[o("Mobile")]:{type:"string",default:""}}};Q.defaultProps={attrNameTemplate:"",attrName:"",defaultValue:""};const ee=Q,te=e=>{const t=V(e,"all")&&e.attrNameTemplate||"",n=V(e,"all")&&e.disableWidthDirections||[],r=!V(e,"all")||(e.allowBorderColor??!0),o=!V(e,"all")||(e.allowBorderRadius??!0),l=e=>P(t,e),i=G({attrNameTemplate:t,attrName:"BorderWidth",disableDirections:n,allowUnitControl:!1}),a=r?{[l("BorderColor")]:{type:"string",default:""}}:{},s=o?G({attrNameTemplate:t,attrName:"BorderRadius"}):{};return{[l("BorderStyle")]:{type:"string",default:""},...a,...i,...s}};te.defaultProps={attrNameTemplate:"",allowBorderColor:!0,allowBorderRadius:!0};const ne=te,re=e=>{const t=V(e,"all")&&e.attrNameTemplate||"",n=e=>P(t,e);return{[n("BoxShadowColor")]:{type:"string",default:""},[n("BoxShadowHorizontal")]:{type:"number",default:""},[n("BoxShadowVertical")]:{type:"number",default:""},[n("BoxShadowBlur")]:{type:"number",default:""},[n("BoxShadowSpread")]:{type:"number",default:""},[n("BoxShadowPosition")]:{type:"string",default:""}}};re.defaultProps={attrNameTemplate:""};const oe=re,le=e=>{const t=V(e,"all")&&e.excludePanels||[],n=V(e,"all")&&e.includePanels||[];let r=n&&n.length?n:["advanced","motion-effects","background","border","positioning","responsive"];const o=e=>P("",e);t&&t.length&&t.forEach(e=>{r.splice(r.indexOf(e),1)});let l={};const i=H();if(r.includes("advanced")){const e=G({attrName:o("Margin")}),t=G({attrName:o("Padding")});l={...l,...e,...t,[o("zIndex")]:{type:"number",default:""},[o("cssId")]:{type:"string",default:""},[o("cssClasses")]:{type:"string",default:""}}}if(r.includes("motion-effects")&&(l={...l,[o("EntranceAnimation")]:{type:"string",default:""},[o("EntranceAnimationDuration")]:{type:"string",default:"normal"},[o("EntranceAnimationDelay")]:{type:"number",default:""}}),r.includes("background")){const e=J({attrNameTemplate:"Advanced"});l={...l,...e}}if(r.includes("border")){const e=ne({attrNameTemplate:"Advanced"}),t=oe({attrNameTemplate:"Advanced"});l={...l,...e,...t}}if(r.includes("positioning")){const e=ee({attrName:o("BlockWidth")}),t=W({blockAttributeKey:o("BlockCustomWidth"),allowScreens:!0}),n=W({blockAttributeKey:o("PositionHorizontalOffset"),allowScreens:!0}),r=W({blockAttributeKey:o("PositionVerticalOffset"),allowScreens:!0});l={...l,...e,...t,[o("BlockPosition")]:{type:"string",default:""},[o("PositionHorizontalOrientation")]:{type:"string",default:"left"},...n,[o("PositionVerticalOrientation")]:{type:"string",default:"top"},...r}}return r.includes("responsive")&&(l={...l,...i}),l};le.defaultProps={excludePanels:[],includePanels:[]};const ie=le;var ae=n(5364),se=n.n(ae);const ce=e=>{const t=!V(e,"all")||(e.allowColumnsGap??!0),n=!V(e,"all")||(e.allowColumnsGapSlider??!0),r=!V(e,"all")||(e.allowColumnsResponsive??!0),o=V(e,"all")&&e.attrNameTemplate||"",l=V(e,"all")&&e.defaultColumnNumber||3,i=V(e,"all")&&e.allowColumnsGapSliderValue||"";let a={},s={};return a[P(o,"Columns")]={type:"number",default:l},t&&(a[P(o,"ColumnsGap")]={type:"string",default:"normal"}),n&&(s=W({blockAttributeKey:P(o,"SpaceBetweenItems"),allowScreens:!0,defaultValue:i})),r&&(a[P(o,"ColumnsResponsive")]={type:"string",default:"predefined"},a[P(o,"Columns1440")]={type:"number",default:""},a[P(o,"Columns1366")]={type:"number",default:""},a[P(o,"Columns1024")]={type:"number",default:""},a[P(o,"Columns768")]={type:"number",default:""},a[P(o,"Columns680")]={type:"number",default:""},a[P(o,"Columns480")]={type:"number",default:""}),se()(a,s)};ce.defaultProps={allowColumnsGap:!0,allowColumnsResponsive:!0,attrNameTemplate:"",defaultColumnNumber:3};const ue=ce,pe=e=>{const t=V(e,"all")&&e.attrNameTemplate||"",n=V(e,"all")&&e.defaultValue||"",r="HorizontalAlignment";let o={};return o[P(t,r)]={type:"string",default:n},o[P(t,r,"Tablet")]={type:"string",default:""},o[P(t,r,"Mobile")]={type:"string",default:""},o};pe.defaultProps={attrNameTemplate:""};const me=pe,de=e=>{const t=V(e,"all")&&e.attrNameTemplate||"",n=e=>P(t,e),r=W({blockAttributeKey:n("FontSize"),allowScreens:!0}),o=W({blockAttributeKey:n("LineHeight"),allowScreens:!0}),l=W({blockAttributeKey:n("LetterSpacing"),allowScreens:!0});return{[n("FontFamily")]:{type:"string",default:""},...r,[n("FontWeight")]:{type:"string",default:""},[n("TextTransform")]:{type:"string",default:""},[n("FontStyle")]:{type:"string",default:""},[n("TextDecoration")]:{type:"string",default:""},...o,...l}};de.defaultProps={attrNameTemplate:""};const be=de,fe=ie(),ge=ue({attrNameTemplate:"Clients",allowColumnsGap:!1}),he=W({blockAttributeKey:"spaceBetweenItems",allowScreens:!0}),ye=W({blockAttributeKey:"borderWidth",allowScreens:!0}),ve=G({attrNameTemplate:"Box",attrName:"Padding"}),ke=me({attrNameTemplate:"Text",attrName:"Alignment"}),_e=be({attrNameTemplate:"Title"}),we=be({attrNameTemplate:"Text"}),Se=W({blockAttributeKey:"imagesMarginBottom",allowScreens:!0}),Ae=W({blockAttributeKey:"titleMarginBottom",allowScreens:!0}),Ie=G({attrNameTemplate:"Content",attrName:"Padding"}),xe=W({blockAttributeKey:"iconSize",allowScreens:!0}),Ce=W({blockAttributeKey:"iconTopPosition",allowScreens:!0}),qe=W({blockAttributeKey:"iconRightPosition",allowScreens:!0}),Ee={uniqueClass:{type:"string",default:""},enableBorders:{type:"string",default:"no"},enableBoxed:{type:"boolean",default:!1},hoverType:{type:"string",default:""},clientItemsRepeater:{type:"array",default:[{clientImage:{id:"",url:qiBlocksEditor.vars.defaultImage,alt:""},clientHoverImage:{id:"",url:qiBlocksEditor.vars.defaultImage,alt:""},clientTitle:qiBlocksEditor.vars.defaultTitleLabel+" 1",clientText:qiBlocksEditor.vars.defaultContentLabel,clientLink:{},clientIcon:{id:"",url:"",alt:""}},{clientImage:{id:"",url:qiBlocksEditor.vars.defaultImage,alt:""},clientHoverImage:{id:"",url:qiBlocksEditor.vars.defaultImage,alt:""},clientTitle:qiBlocksEditor.vars.defaultTitleLabel+" 2",clientText:qiBlocksEditor.vars.defaultContentLabel,clientLink:{},clientIcon:{id:"",url:"",alt:""}},{clientImage:{id:"",url:qiBlocksEditor.vars.defaultImage,alt:""},clientHoverImage:{id:"",url:qiBlocksEditor.vars.defaultImage,alt:""},clientTitle:qiBlocksEditor.vars.defaultTitleLabel+" 3",clientText:qiBlocksEditor.vars.defaultContentLabel,clientLink:{},clientIcon:{id:"",url:"",alt:""}}]},borderColor:{type:"string",default:""},borderStyle:{type:"string",default:"solid"},boxBackgroundColor:{type:"string",default:""},titleTag:{type:"string",default:"h4"},titleHoverUnderline:{type:"boolean",default:!1},borderWidthCorrection:{type:"number",default:0},...fe,...ge,...he,...ye,...ve,...ke,titleColor:{type:"string",default:""},..._e,textColor:{type:"string",default:""},...we,...Se,...Ae,iconColor:{type:"string",default:""},...xe,...Ce,...qe,...Ie},Te=wp.blockEditor,Oe=wp.compose,Pe=wp.element;var Ne=n(6942),Be=n.n(Ne);const Re=e=>{const t=t=>P(e.attrNameTemplate,e.attrName,t),n=V(e,"all")&&void 0!==e.disableDirections&&e.disableDirections.length>0?e.disableDirections:[],r=V(e,"all")&&void 0!==e.isImportant&&e.isImportant?" !important":"",{blockAttributes:o}=e,l=["Top","Right","Bottom","Left"];let i={},a={},s={};return Object.entries(y).map(([c])=>{const u=B(c),p=t("Unit"+u),m="p"===o[p]?"%":o[p]||"px";[...l].map((p,d)=>{const b=o[t(p+u)],f=o[t(`${p}Decimal`+u)];if(V(b)||V(f)){let t;const o=e.attrName?e.attrName.toLowerCase():"";if(o.includes("border")){if(o.includes("width"))t=`border${p}Width`;else if(o.includes("radius")){let e,n,r;n=d%2?l[d-1]:p,r=d%2?p:l[l.length-d-1],e=`${n}${r}`,t=`border${e}Radius`}}else t=e.attrName?`${o}${p}`:p.toLowerCase();let u="";if(M(m)&&""!==b?u=n.length>0&&n.includes(p)?"":parseInt(b,10)+m:j(m)&&""!==f&&(u=n.length>0&&n.includes(p)?"":parseFloat(f)+m),u)switch(c){case"desktop":i[t]=u+r;break;case"tablet":a[t]=u+r;break;case"mobile":s[t]=u+r}}})}),{desktop:i,tablet:a,mobile:s}};Re.defaultProps={attrNameTemplate:"",attrName:"",blockAttributes:{},disableDirections:[],isImportant:!1};const De=Re,Me=e=>{const{blockAttributes:t}=e,n=V(e,"all")&&e.attrNameTemplate||"",r=V(e,"all")&&e.attrName||"Background",o=(e,t)=>P(n,r+e,t);let l={},i={},a={};return t[o("Attachment")]&&(l.backgroundAttachment=t[o("Attachment")]),Object.entries(y).map(([e])=>{let n=B(e),r={};if(t[o("Image",n)]&&t[o("Image",n)].url&&(r.backgroundImage=`url(${t[o("Image",n)].url})`),t[o("Repeat",n)]&&(r.backgroundRepeat=t[o("Repeat",n)]),"custom"===t[o("Position",n)]){let e="",l="";(t[o("XPosition",n)]||t[o("XPositionDecimal",n)])&&(M(t[o("XPositionUnit",n)])&&t[o("XPosition",n)]?e=parseInt(t[o("XPosition",n)],10)+t[o("XPositionUnit",n)]:j(t[o("XPositionUnit",n)])&&t[o("XPositionDecimal",n)]&&(e=parseFloat(t[o("XPositionDecimal",n)])+t[o("XPositionUnit",n)])),(t[o("YPosition",n)]||t[o("YPositionDecimal",n)])&&(M(t[o("YPositionUnit",n)])&&t[o("YPosition",n)]?l=parseInt(t[o("YPosition",n)],10)+t[o("YPositionUnit",n)]:j(t[o("YPositionUnit",n)])&&t[o("YPositionDecimal",n)]&&(l=parseFloat(t[o("YPositionDecimal",n)])+t[o("YPositionUnit",n)])),""===e&&""===l||(r.backgroundPosition=e+" "+l)}else t[o("Position",n)]&&(r.backgroundPosition=t[o("Position",n)]);"custom"===t[o("Size",n)]?(t[o("SizeWidth",n)]||t[o("SizeWidthDecimal",n)])&&(M(t[o("SizeWidthUnit",n)])&&t[o("SizeWidth",n)]?r.backgroundSize=parseInt(t[o("SizeWidth",n)],10)+t[o("SizeWidthUnit",n)]+" auto":j(t[o("SizeWidthUnit",n)])&&t[o("SizeWidthDecimal",n)]&&(r.backgroundSize=parseFloat(t[o("SizeWidthDecimal",n)])+t[o("SizeWidthUnit",n)]+" auto")):t[o("Size",n)]&&(r.backgroundSize=t[o("Size",n)]),Object.keys(r).length>0&&Object.entries(r).map(([t,n])=>{switch(e){case"desktop":l[t]=n;break;case"tablet":i[t]=n;break;case"mobile":a[t]=n}})}),{desktop:l,tablet:i,mobile:a}};Me.defaultProps={attrNameTemplate:"",attrName:"Background",blockAttributes:{}};const je=Me,Le=e=>{const{blockAttributes:t}=e,n=V(e,"all")&&e.attrNameTemplate||"",r=(e,t)=>P(n,e,t),o=t[r("BackgroundType")]||"";let l={},i={},a={};if("gradient"===o){let e={type:"linear",position:"",color_1:"",location_1:"",color_2:"",location_2:""};t[r("BackgroundGradientColor1")]&&(e.color_1=t[r("BackgroundGradientColor1")]),V(t[r("BackgroundGradientLocation1")])&&(e.location_1=L(t[r("BackgroundGradientLocation1")])+"%"),t[r("BackgroundGradientColor2")]&&(e.color_2=t[r("BackgroundGradientColor2")]),V(t[r("BackgroundGradientLocation2")])&&(e.location_2=L(t[r("BackgroundGradientLocation2")])+"%"),t[r("BackgroundGradientType")]&&(e.type=t[r("BackgroundGradientType")]),"linear"===e.type&&""!==t[r("BackgroundGradientTypeAngle")]?e.position=L(t[r("BackgroundGradientTypeAngle")])+"deg":"radial"===e.type&&t[r("BackgroundGradientTypePosition")]&&(e.position="at "+t[r("BackgroundGradientTypePosition")]),e.type&&e.position&&e.color_1&&e.location_1&&e.color_2&&e.location_2?(l.backgroundColor="transparent",l.backgroundImage=`${e.type}-gradient(${e.position}, ${e.color_1} ${e.location_1}, ${e.color_2} ${e.location_2})`):e.color_1&&(l.backgroundColor=e.color_1)}else"video"===o?!t[r("BackgroundVideoPlayOnMobile")]&&t[r("BackgroundVideoFallbackImage")]&&t[r("BackgroundVideoFallbackImage")].url&&(i.backgroundImage=`url(${t[r("BackgroundVideoFallbackImage")].url})`,i.backgroundPosition="center",i.backgroundSize="cover"):(t[r("BackgroundColor")]&&(l.backgroundColor=t[r("BackgroundColor")]),a=je({attrNameTemplate:n,blockAttributes:t}));return se()({desktop:l,tablet:{},mobile:i},a)};Le.defaultProps={attrNameTemplate:"",blockAttributes:{}};const Ve=Le,Ue=e=>{const{blockAttributes:t}=e,n=V(e,"all")&&e.attrNameTemplate||"",r=V(e,"all")&&e.disableWidthDirections||[],o=!V(e,"all")||(e.allowBorderColor??!0),l=(e,t)=>P(n,e,t);let i={},a={};const s=!V(e,"all")||(e.allowBorderRadius??!0)?De({blockAttributes:t,attrNameTemplate:n,attrName:"BorderRadius",disableDirections:r}):{};return t[l("BorderStyle")]&&(i.borderStyle=t[l("BorderStyle")],o&&t[l("BorderColor")]&&(i.borderColor=t[l("BorderColor")]),a=De({attrNameTemplate:n,attrName:"BorderWidth",blockAttributes:t})),se()({desktop:i,tablet:{},mobile:{}},a,s)};Ue.defaultProps={attrNameTemplate:"",allowBorderColor:!0,allowBorderRadius:!0,blockAttributes:{}};const Fe=Ue,Ke=e=>{const{blockAttributes:t,excludeOptions:n}=e,r=V(e,"all")&&e.attrNameTemplate||"",o=(e,t)=>P(r,e,t);let l={},i={x:0,y:0,blur:0,spread:0,color:"",position:""};var a;return t[o("BoxShadowColor")]&&(i.color=t[o("BoxShadowColor")]),""!==t[o("BoxShadowHorizontal")]&&(i.x=t[o("BoxShadowHorizontal")]),""!==t[o("BoxShadowVertical")]&&(i.y=t[o("BoxShadowVertical")]),""!==t[o("BoxShadowBlur")]&&(i.blur=t[o("BoxShadowBlur")]),""!==t[o("BoxShadowSpread")]&&(i.spread=t[o("BoxShadowSpread")]),a="position",n&&n.length&&n.includes(a)||!t[o("BoxShadowPosition")]||(i.position=t[o("BoxShadowPosition")]),i.color&&(l.boxShadow=i.x+"px "+i.y+"px "+i.blur+"px "+i.spread+"px "+i.color+" "+i.position),{desktop:l,tablet:{},mobile:{}}};Ke.defaultProps={attrNameTemplate:"",blockAttributes:{}};const He=Ke,ze=e=>{const{blockAttributes:t}=e,n=(e,t="")=>P("",e,t),r=V(e,"all")&&e.excludePanels||[],o=V(e,"all")&&e.includePanels||[];let l=o&&o.length?o:["advanced","motion-effects","background","border","positioning","responsive"];r&&r.length&&r.forEach(e=>{l.splice(l.indexOf(e),1)});let i={},a={},s={},c={},u={};l.includes("advanced")&&(V(t[n("zIndex")])&&(i.zIndex=L(t[n("zIndex")])),c=De({attrName:n("Margin"),blockAttributes:t}),u=De({attrName:n("Padding"),blockAttributes:t})),l.includes("motion-effects")&&void 0!==t[n("EntranceAnimation")]&&""!==t[n("EntranceAnimation")]&&t[n("EntranceAnimationDelay")]&&(i.animationDelay=L(t[n("EntranceAnimationDelay")])+"ms");let p={};l.includes("background")&&(p=Ve({attrNameTemplate:"Advanced",blockAttributes:t}));let m={};if(l.includes("border")){const e=Fe({attrNameTemplate:"Advanced",blockAttributes:t}),n=He({attrNameTemplate:"Advanced",blockAttributes:t});m=se()(e,n)}if(l.includes("positioning")){V(t[n("BlockPosition")])&&(i.position=t[n("BlockPosition")]);const e=t[n("PositionHorizontalOrientation")],r=t[n("PositionVerticalOrientation")];Object.entries(y).map(([o])=>{let l=B(o),c={};"custom"!==t[n("BlockWidth")]&&"custom"!==t[n("BlockWidth",l)]||!t[n("BlockCustomWidth",l)]&&!t[n("BlockCustomWidthDecimal",l)]||(M(t[n("BlockCustomWidthUnit",l)])&&t[n("BlockCustomWidth",l)]?(c.width=parseInt(t[n("BlockCustomWidth",l)],10)+t[n("BlockCustomWidthUnit",l)],c.maxWidth=parseInt(t[n("BlockCustomWidth",l)],10)+t[n("BlockCustomWidthUnit",l)]):j(t[n("BlockCustomWidthUnit",l)])&&t[n("BlockCustomWidthDecimal",l)]&&(c.width=parseFloat(t[n("BlockCustomWidthDecimal",l)])+t[n("BlockCustomWidthUnit",l)],c.maxWidth=parseFloat(t[n("BlockCustomWidthDecimal",l)])+t[n("BlockCustomWidthUnit",l)])),""===U(t[n("PositionHorizontalOffset",l)])&&""===U(t[n("PositionHorizontalOffsetDecimal",l)])||(M(t[n("PositionHorizontalOffsetUnit",l)])&&""!==U(t[n("PositionHorizontalOffset",l)])?c[e]=parseInt(t[n("PositionHorizontalOffset",l)],10)+t[n("PositionHorizontalOffsetUnit",l)]:j(t[n("PositionHorizontalOffsetUnit",l)])&&""!==U(t[n("PositionHorizontalOffsetDecimal",l)])&&(c[e]=parseFloat(t[n("PositionHorizontalOffsetDecimal",l)])+t[n("PositionHorizontalOffsetUnit",l)])),""===U(t[n("PositionVerticalOffset",l)])&&""===U(t[n("PositionVerticalOffsetDecimal",l)])||(M(t[n("PositionVerticalOffsetUnit",l)])&&""!==U(t[n("PositionVerticalOffset",l)])?c[r]=parseInt(t[n("PositionVerticalOffset",l)],10)+t[n("PositionVerticalOffsetUnit",l)]:j(t[n("PositionVerticalOffsetUnit",l)])&&""!==U(t[n("PositionVerticalOffsetDecimal",l)])&&(c[r]=parseFloat(t[n("PositionVerticalOffsetDecimal",l)])+t[n("PositionVerticalOffsetUnit",l)])),Object.keys(c).length>0&&Object.entries(c).map(([e,t])=>{switch(o){case"desktop":i[e]=t;break;case"tablet":a[e]=t;break;case"mobile":s[e]=t}})})}return i={desktop:i,tablet:a,mobile:s},se()(i,c,u,p,m)};ze.defaultProps={blockAttributes:{},excludePanels:[],includePanels:[]};const Ge=ze,$e=e=>{const{unitType:t,unitValue:n,onChangeUnit:r}=e;if(e.units[t])return wp.element.createElement("ul",{className:"qodef-unit-control"},Object.entries(e.units[t]).map(([e,t],o)=>wp.element.createElement("li",{key:o},wp.element.createElement("a",{className:Be()("qodef-unit",{"qodef--selected":("p"===e?"%":e)===n}),onClick:r,"data-unit":"p"===e?"%":e},t))))};$e.defaultProps={units:{typography:{px:(0,e.__)("px","qi-blocks"),em:(0,e.__)("em","qi-blocks"),rem:(0,e.__)("rem","qi-blocks"),vw:(0,e.__)("vw","qi-blocks")},measure:{px:(0,e.__)("px","qi-blocks"),p:(0,e.__)("%","qi-blocks"),vw:(0,e.__)("vw","qi-blocks"),vh:(0,e.__)("vh","qi-blocks")},space:{px:(0,e.__)("px","qi-blocks"),p:(0,e.__)("%","qi-blocks"),em:(0,e.__)("em","qi-blocks")},height:{px:(0,e.__)("px","qi-blocks"),vw:(0,e.__)("vw","qi-blocks"),vh:(0,e.__)("vh","qi-blocks")},xPosition:{px:(0,e.__)("px","qi-blocks"),em:(0,e.__)("em","qi-blocks"),p:(0,e.__)("%","qi-blocks"),vw:(0,e.__)("vw","qi-blocks")},yPosition:{px:(0,e.__)("px","qi-blocks"),em:(0,e.__)("em","qi-blocks"),p:(0,e.__)("%","qi-blocks"),vh:(0,e.__)("vh","qi-blocks")},pxAndPercent:{px:(0,e.__)("px","qi-blocks"),p:(0,e.__)("%","qi-blocks")},pxAndEm:{px:(0,e.__)("px","qi-blocks"),em:(0,e.__)("em","qi-blocks")},pxEmVw:{px:(0,e.__)("px","qi-blocks"),em:(0,e.__)("em","qi-blocks"),vw:(0,e.__)("vw","qi-blocks")},pxPercentVh:{px:(0,e.__)("px","qi-blocks"),p:(0,e.__)("%","qi-blocks"),vh:(0,e.__)("vh","qi-blocks")},pxPercentVw:{px:(0,e.__)("px","qi-blocks"),p:(0,e.__)("%","qi-blocks"),vw:(0,e.__)("vw","qi-blocks")},pxEmRem:{px:(0,e.__)("px","qi-blocks"),em:(0,e.__)("em","qi-blocks"),rem:(0,e.__)("rem","qi-blocks")}},unitValue:"",onChangeUnit:()=>{}};const We=$e;class Ye extends Pe.Component{constructor(){super(...arguments),this.state={screen:h,isScreenPickerOpen:!1,isMouseOver:!1}}onChangeScreen(e,t){const n=this;n.state.isScreenPickerOpen?(n.props.onChangeScreen(e),n.setState({screen:e,isScreenPickerOpen:!1}),v=e,!t&&n.changePreviewScreen(e),(0,l.doAction)("qi-blocks-action-screen-change",e)):t||n.setState({isScreenPickerOpen:!0}),window.addEventListener("click",e=>{const t=document.querySelectorAll(".qodef-screens-option .qodef-screens.qodef--opened");t.length&&!t[0].contains(e.target)&&n.setState({isScreenPickerOpen:!1})})}onOtherScreenChange(e){this.props.onChangeScreen(e),this.setState({screen:e})}componentDidMount(){const{instanceId:e}=this.props;(0,l.addAction)("qi-blocks-action-screen-change",`qi-blocks/components/screen-control-${e}`,this.onOtherScreenChange.bind(this))}componentWillUnmount(){const{instanceId:e}=this.props;(0,l.removeAction)("qi-blocks-action-screen-change",`qi-blocks/components/screen-control-${e}`)}changeScreenControls(e){k()!==e.previewScreen&&this.onChangeScreen(e.previewScreen,!0)}changePreviewScreen(e){if(e!==this.props.previewScreen){const t=(0,i.dispatch)("core/edit-post")||"",n=(0,i.dispatch)("core/edit-site")||"";let r;if(t){let{__experimentalSetPreviewDeviceType:e}=t;r=e}if(n){const{__experimentalSetPreviewDeviceType:e}=n;r=e}r&&r(N(e))}}render(){const e={...this.props},t={...this.state},{label:n,screens:r,isWidgetsArea:o,previewScreen:l}=e;let i=!1;return(r.length<1||o)&&(i=!0),h!==l&&t.screen!==l&&this.onOtherScreenChange(l),this.changeScreenControls(e),wp.element.createElement("div",{className:"qodef-screens-option"},h!==t.screen&&wp.element.createElement("style",null,"\n\t\t\t\t\t\t\t.qodef-screens-option .qodef-screens.qodef--opened {\n\t\t\t\t\t\t\t\ttop: calc(-4px - 22px * "+Object.keys(r).indexOf(t.screen)+");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t"),n&&wp.element.createElement("label",{className:"qodef-option-label"},n),!i&&wp.element.createElement("ul",{className:"qodef-screens "+(t.isScreenPickerOpen?"qodef--opened":"")},Object.entries(r).map(([e,n],o)=>o===Object.keys(r).indexOf(t.screen)||t.isScreenPickerOpen?wp.element.createElement("li",{className:"qodef-screen-item "+(e===t.screen?"qodef--selected":""),key:o},wp.element.createElement(_.Button,{className:"qodef-screen-item-button",onClick:()=>this.onChangeScreen(e),icon:n.icon,showTooltip:!1,label:n.label,"data-screen":e,onMouseEnter:()=>this.setState({isMouseOver:e}),onMouseLeave:()=>this.setState({isMouseOver:!1})}),e===t.isMouseOver&&wp.element.createElement("div",{className:"qodef-screen-item-tooltip"},n.label)):null)))}}Ye.defaultProps={label:"",screens:y,isWidgetsArea:!1,previewScreen:"desktop",onChangeScreen:()=>{}};const Xe=(0,i.withSelect)(e=>{let t="desktop";return e("core/edit-post")&&(t="function"==typeof e("core/editor")?.getDeviceType?e("core/editor")?.getDeviceType()?.toLowerCase():e("core/edit-post").__experimentalGetPreviewDeviceType().toLowerCase()),e("core/edit-site")&&(t="function"==typeof e("core/editor")?.getDeviceType?e("core/editor")?.getDeviceType()?.toLowerCase():e("core/edit-site").__experimentalGetPreviewDeviceType().toLowerCase()),{isWidgetsArea:e("core/edit-widgets")&&!e("core/edit-post"),previewScreen:t}})((0,Oe.withInstanceId)(Ye));class Ze extends Pe.Component{constructor(){super(...arguments),this.state={screen:k(),linkedInputs:!1}}getScreenLabelSuffix(e){const t=e||this.state.screen;return B(t)}getAttributeValue(e,t=""){const{blockAttributes:n,allowScreens:r,repeater:o,repeaterItemIndex:l,repeaterItemKey:i,repeaterGetAttributes:a}=this.props;let s=e;r&&t&&(s=e+t);let c=n[s];return o&&(c=a({key:i,childKey:s},l)),U(c)}setAttributeValue(e,t,n=""){const{setAttributes:r,allowScreens:o,repeater:l,repeaterItemIndex:i,repeaterItemKey:a,repeaterSetAttributes:s}=this.props;let c=e;o&&n&&(c=e+n),l?s({key:a,childKey:c},t,i):r({[c]:t})}render(){const t={...this.props},{label:n,allowScreens:r,rangeMax:o,rangeMin:l,rangeStep:i,rangeDecimalMax:a,rangeDecimalMin:s,rangeDecimalStep:c,repeater:u}=t,p=e=>P(t.attrNameTemplate,t.attrName,e),m=this.getScreenLabelSuffix(),d=p(),b=p("Unit"+m),f=["Top","Right","Bottom","Left"],g=()=>{const e=this.getAttributeValue(b)||"px";return M(e)},h="margin"===t.attrName.toLowerCase()||t.allowNegativeValues?-1*(g()?o:a):g()?l:s;return t.onChange=(e,t)=>{g()?this.setAttributeValue(p(t),L(e),m):this.setAttributeValue(p(`${t}Decimal`),L(e,"decimal"),m)},t.getValue=e=>{let t;return t=g()?""!==this.getAttributeValue(p(e),m)?parseInt(this.getAttributeValue(p(e),m),10):"":""!==this.getAttributeValue(p(`${e}Decimal`),m)?parseFloat(this.getAttributeValue(p(`${e}Decimal`),m)):"",t},t.getPlaceholderValue=e=>{let t="";return"Tablet"===m?t=g()?""!==this.getAttributeValue(p(e))?parseInt(this.getAttributeValue(p(e)),10):"":""!==this.getAttributeValue(p(`${e}Decimal`))?parseFloat(this.getAttributeValue(p(`${e}Decimal`))):"":"Mobile"===m&&(g()?""!==this.getAttributeValue(p(e),"Tablet")?t=parseInt(this.getAttributeValue(p(e),"Tablet"),10):""!==this.getAttributeValue(p(e))&&(t=parseInt(this.getAttributeValue(p(e)),10)):""!==this.getAttributeValue(p(`${e}Decimal`),"Tablet")?t=parseInt(this.getAttributeValue(p(`${e}Decimal`),"Tablet"),10):""!==this.getAttributeValue(p(`${e}Decimal`))&&(t=parseInt(this.getAttributeValue(p(`${e}Decimal`)),10))),t},t.getRangeValue=()=>{let e="";return[...f].some(n=>{t.disableDirections.includes(n)||(e=t.getValue(n))}),e},t.onRangeChange=e=>{[...f].map(n=>{t.disableDirections.length>0&&t.disableDirections.includes(n)?t.onChange("",n):t.onChange(e,n)})},t.onChangeScreen=e=>{this.setState({screen:e})},t.onLinkInputs=e=>{e.preventDefault(),this.state.linkedInputs||[...f].map(e=>{t.disableDirections.length>0&&t.disableDirections.includes(e)?t.onChange("",e):t.onChange(t.getValue("Top"),e)}),this.setState({linkedInputs:!this.state.linkedInputs})},t.onChangeUnit=e=>{e.preventDefault();const t=u?200:0,n=e.target.getAttribute("data-unit"),r=this.getAttributeValue(b)||"px";this.setAttributeValue(b,n),setTimeout(()=>{n!==r&&[...f].map(e=>{const t=d+e,o=`${t}Decimal`;let l=t+m,i=o+m;"px"!==n&&(l=o+m),"px"===r&&(i=t+m,this.setAttributeValue(i,"")),this.setAttributeValue(l,this.getAttributeValue(i))})},t)},wp.element.createElement(_.BaseControl,{className:"qodef-input-control"},wp.element.createElement("div",{className:"qodef-control-heading"},r?wp.element.createElement("div",{className:"qodef-input-control-screens"},wp.element.createElement(Xe,{label:n,onChangeScreen:t.onChangeScreen})):wp.element.createElement("label",{className:"qodef-option-label"},n),t.allowUnitControl&&wp.element.createElement(We,{unitType:t.unitType,unitValue:this.getAttributeValue(b),onChangeUnit:t.onChangeUnit}),t.allowLinkedControl&&wp.element.createElement(_.Button,{icon:this.state.linkedInputs?"editor-unlink":"admin-links",onClick:t.onLinkInputs,className:"qodef-link-inputs-button "+(this.state.linkedInputs?"linked":"unlinked")})),this.state.linkedInputs?wp.element.createElement(_.RangeControl,{min:l,max:g()?o:a,step:g()?i:c,onChange:t.onRangeChange,allowReset:!0,value:t.getRangeValue()}):wp.element.createElement("ul",null,[...f].map((n,r)=>wp.element.createElement("li",{className:"qodef-input-control-item",key:r},t.disableDirections.length>0&&t.disableDirections.includes(n)?wp.element.createElement("div",{className:"components-base-control__field"},wp.element.createElement("label",null,(0,e.__)(n,"qi-blocks")),wp.element.createElement("input",{className:"components-text-control__input",type:"text",disabled:!0,value:(0,e.__)("auto","qi-blocks")})):wp.element.createElement(_.TextControl,{type:"number",value:t.getValue(n),placeholder:t.getPlaceholderValue(n),onChange:e=>t.onChange(e,n),label:(0,e.__)(n,"qi-blocks"),min:h,max:g()?o:a,step:g()?i:c})))))}}Ze.defaultProps={label:"",attrNameTemplate:"",attrName:"",blockAttributes:{},setAttributes:()=>{},unitType:"space",allowScreens:!0,allowNegativeValues:!1,disableDirections:[],allowUnitControl:!0,allowLinkedControl:!0,rangeMax:600,rangeMin:0,rangeStep:1,rangeDecimalMax:100,rangeDecimalMin:0,rangeDecimalStep:.01,repeater:!1,repeaterItemIndex:0,repeaterItemKey:"",repeaterSetAttributes:()=>{},repeaterGetAttributes:()=>{}};const Je=Ze;class Qe extends Pe.Component{constructor(){super(...arguments),this.state={screen:k()}}getScreenLabelSuffix(){return B(this.state.screen)}getAttributeValue(e,t=this.getScreenLabelSuffix()){const{blockAttributes:n,repeater:r,repeaterItemIndex:o,repeaterItemKey:l,repeaterGetAttributes:i}=this.props;let a=e;t&&(a=e+t);let s=n[a];return r&&(s=i({key:l,childKey:a},o)),U(s)}setAttributeValue(e,t,n=this.getScreenLabelSuffix()){const{setAttributes:r,setCustomEventOnChange:o,repeater:l,repeaterItemIndex:i,repeaterItemKey:a,repeaterSetAttributes:s}=this.props;let c=e;n&&(c=e+n),l?s({key:a,childKey:c},t,i):r({[c]:t}),o(t)}render(){const e={...this.props},{label:t,blockAttributeKey:n,selectOptions:r}=e;return e.onChangeScreen=e=>{this.setState({screen:e})},wp.element.createElement(_.BaseControl,{className:"qodef-advanced-select-option"},wp.element.createElement("div",{className:"qodef-advanced-select-heading"},wp.element.createElement(Xe,{label:t,onChangeScreen:e.onChangeScreen})),wp.element.createElement(_.SelectControl,{value:this.getAttributeValue(n),options:r,onChange:e=>this.setAttributeValue(n,e)}))}}Qe.defaultProps={label:(0,e.__)("Default Label Text","qi-blocks"),blockAttributes:{},blockAttributeKey:"",setAttributes:()=>{},selectOptions:{},setCustomEventOnChange:()=>{},repeater:!1,repeaterItemIndex:0,repeaterItemKey:"",repeaterSetAttributes:()=>{},repeaterGetAttributes:()=>{}};const et=Qe,tt=wp.blob,{entries:nt,setPrototypeOf:rt,isFrozen:ot,getPrototypeOf:lt,getOwnPropertyDescriptor:it}=Object;let{freeze:at,seal:st,create:ct}=Object,{apply:ut,construct:pt}="undefined"!=typeof Reflect&&Reflect;at||(at=function(e){return e}),st||(st=function(e){return e}),ut||(ut=function(e,t,n){return e.apply(t,n)}),pt||(pt=function(e,t){return new e(...t)});const mt=Ct(Array.prototype.forEach),dt=Ct(Array.prototype.lastIndexOf),bt=Ct(Array.prototype.pop),ft=Ct(Array.prototype.push),gt=Ct(Array.prototype.splice),ht=Ct(String.prototype.toLowerCase),yt=Ct(String.prototype.toString),vt=Ct(String.prototype.match),kt=Ct(String.prototype.replace),_t=Ct(String.prototype.indexOf),wt=Ct(String.prototype.trim),St=Ct(Object.prototype.hasOwnProperty),At=Ct(RegExp.prototype.test),It=(xt=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return pt(xt,t)});var xt;function Ct(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return ut(e,t,r)}}function qt(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ht;rt&&rt(e,null);let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(ot(t)||(t[r]=e),o=e)}e[o]=!0}return e}function Et(e){for(let t=0;t<e.length;t++){St(e,t)||(e[t]=null)}return e}function Tt(e){const t=ct(null);for(const[n,r]of nt(e)){St(e,n)&&(Array.isArray(r)?t[n]=Et(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=Tt(r):t[n]=r)}return t}function Ot(e,t){for(;null!==e;){const n=it(e,t);if(n){if(n.get)return Ct(n.get);if("function"==typeof n.value)return Ct(n.value)}e=lt(e)}return function(){return null}}const Pt=at(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Nt=at(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Bt=at(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Rt=at(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Dt=at(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Mt=at(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),jt=at(["#text"]),Lt=at(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Vt=at(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Ut=at(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ft=at(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Kt=st(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Ht=st(/<%[\w\W]*|[\w\W]*%>/gm),zt=st(/\$\{[\w\W]*/gm),Gt=st(/^data-[\-\w.\u00B7-\uFFFF]+$/),$t=st(/^aria-[\-\w]+$/),Wt=st(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Yt=st(/^(?:\w+script|data):/i),Xt=st(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Zt=st(/^html$/i),Jt=st(/^[a-z][.\w]*(-[.\w]+)+$/i);var Qt=Object.freeze({__proto__:null,ARIA_ATTR:$t,ATTR_WHITESPACE:Xt,CUSTOM_ELEMENT:Jt,DATA_ATTR:Gt,DOCTYPE_NAME:Zt,ERB_EXPR:Ht,IS_ALLOWED_URI:Wt,IS_SCRIPT_OR_DATA:Yt,MUSTACHE_EXPR:Kt,TMPLIT_EXPR:zt});const en=1,tn=3,nn=7,rn=8,on=9,ln=function(){return"undefined"==typeof window?null:window};var an=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ln();const n=t=>e(t);if(n.version="3.2.6",n.removed=[],!t||!t.document||t.document.nodeType!==on||!t.Element)return n.isSupported=!1,n;let{document:r}=t;const o=r,l=o.currentScript,{DocumentFragment:i,HTMLTemplateElement:a,Node:s,Element:c,NodeFilter:u,NamedNodeMap:p=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:m,DOMParser:d,trustedTypes:b}=t,f=c.prototype,g=Ot(f,"cloneNode"),h=Ot(f,"remove"),y=Ot(f,"nextSibling"),v=Ot(f,"childNodes"),k=Ot(f,"parentNode");if("function"==typeof a){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let _,w="";const{implementation:S,createNodeIterator:A,createDocumentFragment:I,getElementsByTagName:x}=r,{importNode:C}=o;let q={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof nt&&"function"==typeof k&&S&&void 0!==S.createHTMLDocument;const{MUSTACHE_EXPR:E,ERB_EXPR:T,TMPLIT_EXPR:O,DATA_ATTR:P,ARIA_ATTR:N,IS_SCRIPT_OR_DATA:B,ATTR_WHITESPACE:R,CUSTOM_ELEMENT:D}=Qt;let{IS_ALLOWED_URI:M}=Qt,j=null;const L=qt({},[...Pt,...Nt,...Bt,...Dt,...jt]);let V=null;const U=qt({},[...Lt,...Vt,...Ut,...Ft]);let F=Object.seal(ct(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),K=null,H=null,z=!0,G=!0,$=!1,W=!0,Y=!1,X=!0,Z=!1,J=!1,Q=!1,ee=!1,te=!1,ne=!1,re=!0,oe=!1,le=!0,ie=!1,ae={},se=null;const ce=qt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ue=null;const pe=qt({},["audio","video","img","source","image","track"]);let me=null;const de=qt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),be="http://www.w3.org/1998/Math/MathML",fe="http://www.w3.org/2000/svg",ge="http://www.w3.org/1999/xhtml";let he=ge,ye=!1,ve=null;const ke=qt({},[be,fe,ge],yt);let _e=qt({},["mi","mo","mn","ms","mtext"]),we=qt({},["annotation-xml"]);const Se=qt({},["title","style","font","a","script"]);let Ae=null;const Ie=["application/xhtml+xml","text/html"];let xe=null,Ce=null;const qe=r.createElement("form"),Ee=function(e){return e instanceof RegExp||e instanceof Function},Te=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ce||Ce!==e){if(e&&"object"==typeof e||(e={}),e=Tt(e),Ae=-1===Ie.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,xe="application/xhtml+xml"===Ae?yt:ht,j=St(e,"ALLOWED_TAGS")?qt({},e.ALLOWED_TAGS,xe):L,V=St(e,"ALLOWED_ATTR")?qt({},e.ALLOWED_ATTR,xe):U,ve=St(e,"ALLOWED_NAMESPACES")?qt({},e.ALLOWED_NAMESPACES,yt):ke,me=St(e,"ADD_URI_SAFE_ATTR")?qt(Tt(de),e.ADD_URI_SAFE_ATTR,xe):de,ue=St(e,"ADD_DATA_URI_TAGS")?qt(Tt(pe),e.ADD_DATA_URI_TAGS,xe):pe,se=St(e,"FORBID_CONTENTS")?qt({},e.FORBID_CONTENTS,xe):ce,K=St(e,"FORBID_TAGS")?qt({},e.FORBID_TAGS,xe):Tt({}),H=St(e,"FORBID_ATTR")?qt({},e.FORBID_ATTR,xe):Tt({}),ae=!!St(e,"USE_PROFILES")&&e.USE_PROFILES,z=!1!==e.ALLOW_ARIA_ATTR,G=!1!==e.ALLOW_DATA_ATTR,$=e.ALLOW_UNKNOWN_PROTOCOLS||!1,W=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Y=e.SAFE_FOR_TEMPLATES||!1,X=!1!==e.SAFE_FOR_XML,Z=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,ne=e.RETURN_TRUSTED_TYPE||!1,Q=e.FORCE_BODY||!1,re=!1!==e.SANITIZE_DOM,oe=e.SANITIZE_NAMED_PROPS||!1,le=!1!==e.KEEP_CONTENT,ie=e.IN_PLACE||!1,M=e.ALLOWED_URI_REGEXP||Wt,he=e.NAMESPACE||ge,_e=e.MATHML_TEXT_INTEGRATION_POINTS||_e,we=e.HTML_INTEGRATION_POINTS||we,F=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Ee(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(F.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Ee(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(F.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(F.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Y&&(G=!1),te&&(ee=!0),ae&&(j=qt({},jt),V=[],!0===ae.html&&(qt(j,Pt),qt(V,Lt)),!0===ae.svg&&(qt(j,Nt),qt(V,Vt),qt(V,Ft)),!0===ae.svgFilters&&(qt(j,Bt),qt(V,Vt),qt(V,Ft)),!0===ae.mathMl&&(qt(j,Dt),qt(V,Ut),qt(V,Ft))),e.ADD_TAGS&&(j===L&&(j=Tt(j)),qt(j,e.ADD_TAGS,xe)),e.ADD_ATTR&&(V===U&&(V=Tt(V)),qt(V,e.ADD_ATTR,xe)),e.ADD_URI_SAFE_ATTR&&qt(me,e.ADD_URI_SAFE_ATTR,xe),e.FORBID_CONTENTS&&(se===ce&&(se=Tt(se)),qt(se,e.FORBID_CONTENTS,xe)),le&&(j["#text"]=!0),Z&&qt(j,["html","head","body"]),j.table&&(qt(j,["tbody"]),delete K.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw It('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw It('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');_=e.TRUSTED_TYPES_POLICY,w=_.createHTML("")}else void 0===_&&(_=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(b,l)),null!==_&&"string"==typeof w&&(w=_.createHTML(""));at&&at(e),Ce=e}},Oe=qt({},[...Nt,...Bt,...Rt]),Pe=qt({},[...Dt,...Mt]),Ne=function(e){ft(n.removed,{element:e});try{k(e).removeChild(e)}catch(t){h(e)}},Be=function(e,t){try{ft(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){ft(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ee||te)try{Ne(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Re=function(e){let t=null,n=null;if(Q)e="<remove></remove>"+e;else{const t=vt(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Ae&&he===ge&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=_?_.createHTML(e):e;if(he===ge)try{t=(new d).parseFromString(o,Ae)}catch(e){}if(!t||!t.documentElement){t=S.createDocument(he,"template",null);try{t.documentElement.innerHTML=ye?w:o}catch(e){}}const l=t.body||t.documentElement;return e&&n&&l.insertBefore(r.createTextNode(n),l.childNodes[0]||null),he===ge?x.call(t,Z?"html":"body")[0]:Z?t.documentElement:l},De=function(e){return A.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Me=function(e){return e instanceof m&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof p)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},je=function(e){return"function"==typeof s&&e instanceof s};function Le(e,t,r){mt(e,e=>{e.call(n,t,r,Ce)})}const Ve=function(e){let t=null;if(Le(q.beforeSanitizeElements,e,null),Me(e))return Ne(e),!0;const r=xe(e.nodeName);if(Le(q.uponSanitizeElement,e,{tagName:r,allowedTags:j}),X&&e.hasChildNodes()&&!je(e.firstElementChild)&&At(/<[/\w!]/g,e.innerHTML)&&At(/<[/\w!]/g,e.textContent))return Ne(e),!0;if(e.nodeType===nn)return Ne(e),!0;if(X&&e.nodeType===rn&&At(/<[/\w]/g,e.data))return Ne(e),!0;if(!j[r]||K[r]){if(!K[r]&&Fe(r)){if(F.tagNameCheck instanceof RegExp&&At(F.tagNameCheck,r))return!1;if(F.tagNameCheck instanceof Function&&F.tagNameCheck(r))return!1}if(le&&!se[r]){const t=k(e)||e.parentNode,n=v(e)||e.childNodes;if(n&&t){for(let r=n.length-1;r>=0;--r){const o=g(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,y(e))}}}return Ne(e),!0}return e instanceof c&&!function(e){let t=k(e);t&&t.tagName||(t={namespaceURI:he,tagName:"template"});const n=ht(e.tagName),r=ht(t.tagName);return!!ve[e.namespaceURI]&&(e.namespaceURI===fe?t.namespaceURI===ge?"svg"===n:t.namespaceURI===be?"svg"===n&&("annotation-xml"===r||_e[r]):Boolean(Oe[n]):e.namespaceURI===be?t.namespaceURI===ge?"math"===n:t.namespaceURI===fe?"math"===n&&we[r]:Boolean(Pe[n]):e.namespaceURI===ge?!(t.namespaceURI===fe&&!we[r])&&!(t.namespaceURI===be&&!_e[r])&&!Pe[n]&&(Se[n]||!Oe[n]):!("application/xhtml+xml"!==Ae||!ve[e.namespaceURI]))}(e)?(Ne(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!At(/<\/no(script|embed|frames)/i,e.innerHTML)?(Y&&e.nodeType===tn&&(t=e.textContent,mt([E,T,O],e=>{t=kt(t,e," ")}),e.textContent!==t&&(ft(n.removed,{element:e.cloneNode()}),e.textContent=t)),Le(q.afterSanitizeElements,e,null),!1):(Ne(e),!0)},Ue=function(e,t,n){if(re&&("id"===t||"name"===t)&&(n in r||n in qe))return!1;if(G&&!H[t]&&At(P,t));else if(z&&At(N,t));else if(!V[t]||H[t]){if(!(Fe(e)&&(F.tagNameCheck instanceof RegExp&&At(F.tagNameCheck,e)||F.tagNameCheck instanceof Function&&F.tagNameCheck(e))&&(F.attributeNameCheck instanceof RegExp&&At(F.attributeNameCheck,t)||F.attributeNameCheck instanceof Function&&F.attributeNameCheck(t))||"is"===t&&F.allowCustomizedBuiltInElements&&(F.tagNameCheck instanceof RegExp&&At(F.tagNameCheck,n)||F.tagNameCheck instanceof Function&&F.tagNameCheck(n))))return!1}else if(me[t]);else if(At(M,kt(n,R,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==_t(n,"data:")||!ue[e]){if($&&!At(B,kt(n,R,"")));else if(n)return!1}else;return!0},Fe=function(e){return"annotation-xml"!==e&&vt(e,D)},Ke=function(e){Le(q.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Me(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:V,forceKeepAttr:void 0};let o=t.length;for(;o--;){const l=t[o],{name:i,namespaceURI:a,value:s}=l,c=xe(i),u=s;let p="value"===i?u:wt(u);if(r.attrName=c,r.attrValue=p,r.keepAttr=!0,r.forceKeepAttr=void 0,Le(q.uponSanitizeAttribute,e,r),p=r.attrValue,!oe||"id"!==c&&"name"!==c||(Be(i,e),p="user-content-"+p),X&&At(/((--!?|])>)|<\/(style|title)/i,p)){Be(i,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){Be(i,e);continue}if(!W&&At(/\/>/i,p)){Be(i,e);continue}Y&&mt([E,T,O],e=>{p=kt(p,e," ")});const m=xe(e.nodeName);if(Ue(m,c,p)){if(_&&"object"==typeof b&&"function"==typeof b.getAttributeType)if(a);else switch(b.getAttributeType(m,c)){case"TrustedHTML":p=_.createHTML(p);break;case"TrustedScriptURL":p=_.createScriptURL(p)}if(p!==u)try{a?e.setAttributeNS(a,i,p):e.setAttribute(i,p),Me(e)?Ne(e):bt(n.removed)}catch(t){Be(i,e)}}else Be(i,e)}Le(q.afterSanitizeAttributes,e,null)},He=function e(t){let n=null;const r=De(t);for(Le(q.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)Le(q.uponSanitizeShadowNode,n,null),Ve(n),Ke(n),n.content instanceof i&&e(n.content);Le(q.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,l=null,a=null,c=null;if(ye=!e,ye&&(e="\x3c!--\x3e"),"string"!=typeof e&&!je(e)){if("function"!=typeof e.toString)throw It("toString is not a function");if("string"!=typeof(e=e.toString()))throw It("dirty is not a string, aborting")}if(!n.isSupported)return e;if(J||Te(t),n.removed=[],"string"==typeof e&&(ie=!1),ie){if(e.nodeName){const t=xe(e.nodeName);if(!j[t]||K[t])throw It("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof s)r=Re("\x3c!----\x3e"),l=r.ownerDocument.importNode(e,!0),l.nodeType===en&&"BODY"===l.nodeName||"HTML"===l.nodeName?r=l:r.appendChild(l);else{if(!ee&&!Y&&!Z&&-1===e.indexOf("<"))return _&&ne?_.createHTML(e):e;if(r=Re(e),!r)return ee?null:ne?w:""}r&&Q&&Ne(r.firstChild);const u=De(ie?e:r);for(;a=u.nextNode();)Ve(a),Ke(a),a.content instanceof i&&He(a.content);if(ie)return e;if(ee){if(te)for(c=I.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(V.shadowroot||V.shadowrootmode)&&(c=C.call(o,c,!0)),c}let p=Z?r.outerHTML:r.innerHTML;return Z&&j["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&At(Zt,r.ownerDocument.doctype.name)&&(p="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+p),Y&&mt([E,T,O],e=>{p=kt(p,e," ")}),_&&ne?_.createHTML(p):p},n.setConfig=function(){Te(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),J=!0},n.clearConfig=function(){Ce=null,J=!1},n.isValidAttribute=function(e,t,n){Ce||Te({});const r=xe(e),o=xe(t);return Ue(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&ft(q[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=dt(q[e],t);return-1===n?void 0:gt(q[e],n,1)[0]}return bt(q[e])},n.removeHooks=function(e){q[e]=[]},n.removeAllHooks=function(){q={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();class sn extends Pe.Component{constructor(){super(...arguments),this.state={screen:k(),imageId:"",externalImageIsSet:!1,imageSizeNotExist:!1}}getScreenLabelSuffix(){return B(this.state.screen)}getAttributeValue(e=this.getScreenLabelSuffix()){const{blockAttributeKey:t,blockAttributes:n,allowScreens:r,repeater:o,repeaterItemIndex:l,repeaterItemKey:i,isSimpleRepeaterValue:a,repeaterGetAttributes:s}=this.props;let c=t;r&&e&&(c=t+e);let u=n[c];if(o){let n=a?null:t;r&&e&&(n=a?this.state.screen:c),u=s({key:i,childKey:n},l)||{}}return U(u)}setAttributeValue(e){const{blockAttributeKey:t,setAttributes:n,allowScreens:r,repeater:o,repeaterItemIndex:l,repeaterItemKey:i,isSimpleRepeaterValue:a,repeaterSetAttributes:s}=this.props,c=this.getScreenLabelSuffix();let u=t;if(r&&c&&(u=t+c),o){let n=a?null:t;r&&c&&(n=a?this.state.screen:u),s({key:i,childKey:n},e,l)}else n({[u]:e})}componentDidMount(){const{allowScreens:e,allowDefaultImage:t}=this.props,{url:n,id:r,defaultValueIsSet:o}=this.getAttributeValue("");if(n&&!n.includes(qiBlocksEditor.vars.siteURL))this.onSelectURL(n),this.setState({externalImageIsSet:!0});else{r&&(this.setState({imageId:r}),this.updateImageSizeOption(r)),!t||o||n||r||(this.setAttributeValue({id:null,url:qiBlocksEditor.vars.defaultImage,alt:qiBlocksEditor.vars.defaultImagePlaceholder,caption:"",width:1200,height:800,custom_image_size:"",html:""}),this.setState({defaultImageIsSet:!0}));const l=[""];e&&(l.push("Tablet"),l.push("Mobile")),l.map(e=>{const{url:t,id:n}=this.getAttributeValue(e);t&&(0,tt.isBlobURL)(t)&&!n&&this.setAttributeValue({url:"",alt:"",caption:"",width:"",height:"",html:""})})}}setSVGIcon=(e,t,n,r)=>{const o=new XMLHttpRequest;null!=o&&(o.open("GET",t,!0),o.onreadystatechange=()=>{4===o.readyState&&200===o.status&&this.setAttributeValue({id:e,url:t,alt:n,caption:r,html:an.sanitize(o.responseText,{USE_PROFILES:{svg:!0,svgFilters:!0}})})},o.send())};onSelectImage=({id:e,url:t,alt:n,caption:r,width:o,height:l})=>{t.includes(".svg")?this.setSVGIcon(e,t,n,r):this.setAttributeValue({id:e,url:t,alt:n,caption:r,width:o,height:l}),this.setState({imageId:e,externalImageIsSet:!1}),this.updateImageSizeOption(e)};updateImageSizeOption=e=>{if(this.props.allowImageSizes){const t=setInterval(()=>{(0,i.select)("core").getMedia(e)&&(clearInterval(t),this.forceUpdate())},1e3)}};onSelectURL=e=>{e.includes(".svg")?this.setSVGIcon(null,e,"",""):this.setAttributeValue({id:null,url:e,alt:"",caption:"",width:"",height:"",html:""}),this.setState({externalImageIsSet:!1})};onUploadError=e=>{const{noticeOperations:t}=this.props;t.createErrorNotice(e)};removeImage=()=>{this.setAttributeValue({id:null,url:"",alt:"",caption:"",width:"",height:"",html:"",defaultValueIsSet:!!this.props.allowDefaultImage})};onImageSizeChange=e=>{const{customImageSizes:t}=this.props,n=(0,i.select)("core").getMedia(this.state.imageId);if(n){let r=e;t&&t.length>1&&(r=this.getImageURLbySize(e)||n.source_url),"custom"===e&&(r=n.source_url),this.setAttributeValue({id:n.id,url:r,alt:n.alt_text||"",caption:n.caption&&n.caption.raw||"",custom_image_size:e})}};getImageURLbySize(e){const t=this.getAttributeValue();let n="";if(t){const r=(0,i.select)("core").getMedia(t.id);if(!r)return"";const o=r.media_details.sizes;if(o&&0===Object.keys(o).length)this.setState({imageSizeNotExist:!0});else{this.setState({imageSizeNotExist:!1});for(const t in o)if(t.includes("qi_blocks_image_size_"+e.replace("-","_"))){n=o[t].source_url;break}}["","custom"].includes(e)&&this.setState({imageSizeNotExist:!1})}return n}getImageSizes(){const{imageSizes:t,customImageSizes:n}=this.props,r=this.getAttributeValue();let o=[];if(r){const l=(0,i.select)("core").getMedia(r.id);if(!l)return[];const a=l.media_details.sizes;if(a&&0===Object.keys(a).length&&o.push({label:(0,e.__)("Default","qi-blocks"),value:""}),n&&n.length>1)n.map(e=>{o.push({label:e.label,value:e.value})});else for(const e in a){const n=a[e],r=t.find(t=>t.slug===e);r&&o.push({label:r.name,value:n.source_url})}}return o}render(){const t={...this.props},n={...this.state},{label:r,help:o,noticeUI:l,allowedTypes:i,allowScreens:a,allowImageSizes:s}=t,c=this.getAttributeValue(),{id:u,url:p,alt:m,html:d}=c;t.onChangeScreen=e=>{this.setState({screen:e}),this.updateImageSizeOption(u)};let b=["qodef-image-option"];return p&&p.includes(".svg")&&b.push("qodef--svg"),wp.element.createElement(_.BaseControl,{className:b.join(" ")},wp.element.createElement("div",{className:"qodef-advanced-select-heading"},a?wp.element.createElement(Xe,{label:r,onChangeScreen:t.onChangeScreen}):wp.element.createElement(wp.element.Fragment,null,r&&wp.element.createElement("label",{className:"qodef-option-label"},r))),o&&wp.element.createElement("p",{className:"qodef-option-description"},o),p?wp.element.createElement(wp.element.Fragment,null,wp.element.createElement("div",{className:"qodef-image-option-inner"},(0,tt.isBlobURL)(p)&&wp.element.createElement("div",{className:"qodef-image-option-spinner"},wp.element.createElement(_.Spinner,null)),wp.element.createElement(Te.MediaUploadCheck,null,wp.element.createElement(Te.MediaUpload,{allowedTypes:i,value:u,onSelect:this.onSelectImage,render:({open:t})=>wp.element.createElement(wp.element.Fragment,null,wp.element.createElement("img",{src:p,alt:m}),wp.element.createElement("div",{className:"qodef-image-option-actions"},wp.element.createElement(_.Button,{icon:"edit",showTooltip:!0,label:(0,e.__)("Edit Image","qi-blocks"),onClick:t}),wp.element.createElement(_.Button,{icon:"trash",showTooltip:!0,label:(0,e.__)("Remove Image","qi-blocks"),onClick:this.removeImage})))}))),n.imageSizeNotExist&&wp.element.createElement("p",{className:"qodef-image-notice"},(0,e.__)("The Image has no predefined sizes, please set a custom image size.","qi-blocks")),n.externalImageIsSet&&wp.element.createElement("p",{className:"qodef-image-notice"},(0,e.__)("External image URL is set, please upload your image for this Element.","qi-blocks"))):wp.element.createElement(Te.MediaPlaceholder,{allowedTypes:i,icon:"format-image",onSelect:this.onSelectImage,onSelectURL:this.onSelectURL,onError:this.onUploadError,notices:l}),s&&u&&!d&&wp.element.createElement("div",{className:"qodef-image-option-sizes"},wp.element.createElement(_.SelectControl,{label:(0,e.__)("Image Size","qi-blocks"),options:this.getImageSizes(),onChange:this.onImageSizeChange,value:void 0!==c.custom_image_size?c.custom_image_size:p})))}}sn.defaultProps={label:(0,e.__)("Image","qi-blocks"),help:"",blockAttributeKey:"",blockAttributes:{},setAttributes:()=>{},allowedTypes:["image"],allowScreens:!1,allowDefaultImage:!1,allowImageSizes:!1,customImageSizes:[],repeater:!1,repeaterItemIndex:0,repeaterItemKey:"",isSimpleRepeaterValue:!0,repeaterSetAttributes:()=>{},repeaterGetAttributes:()=>{}};const cn=(0,i.withSelect)(e=>({imageSizes:e("core/block-editor")?.getSettings()?.imageSizes}))((0,_.withNotices)(sn));class un extends Pe.Component{constructor(){super(...arguments),this.state={isPickerVisible:!1}}getAttributeValue(){const{defaultColor:e,blockAttributeKey:t,blockAttributes:n,repeater:r,repeaterItemIndex:o,repeaterItemKey:l,isSimpleRepeaterValue:i,repeaterGetAttributes:a}=this.props;let s=n[t];return r&&(s=a({key:l,childKey:i?"":t},o)),s||e}setAttributeValue(e){const{blockAttributeKey:t,setAttributes:n,repeater:r,repeaterItemIndex:o,repeaterItemKey:l,isSimpleRepeaterValue:i,repeaterSetAttributes:a}=this.props;r?a({key:l,childKey:i?"":t},e,o):n({[t]:e})}onChange=e=>{const{r:t,g:n,b:r,a:o}=e.rgb;let l="rgba("+[t,n,r,o].join(",")+")";this.props.setHEXValue&&(l=e.hex),this.setState({colorReset:!0}),this.setAttributeValue(l)};onClick=e=>{e.preventDefault();const t=this;t.setState({isPickerVisible:!this.state.isPickerVisible}),window.addEventListener("click",e=>{const n=document.querySelectorAll(".qodef-color-option.qodef--opened");n.length&&n.forEach(n=>{n.contains(e.target)||t.setState({isPickerVisible:!1})})})};onResetColor=e=>{e.preventDefault(),this.setState({isPickerVisible:!this.state.isPickerVisible}),this.setAttributeValue("")};render(){const{label:t,popup:n}=this.props;return wp.element.createElement(_.BaseControl,{className:"qodef-color-option "+(this.state.isPickerVisible?"qodef--opened":"")},wp.element.createElement("div",{className:"qodef-control-heading"},t&&wp.element.createElement("label",{className:"qodef-option-label"},t),wp.element.createElement(_.Button,{onClick:this.onClick,className:"qodef-color-indicator-button"},wp.element.createElement(_.ColorIndicator,{colorValue:this.getAttributeValue(),className:"qodef-color-indicator"}))),this.state.isPickerVisible&&wp.element.createElement("div",{className:`qodef-color-picker-wrapper ${n&&"qodef--popup"}`},wp.element.createElement(_.ColorPicker,{color:this.getAttributeValue(),onChangeComplete:this.onChange,disableAlpha:this.props.setHEXValue}),wp.element.createElement(_.Button,{onClick:this.onResetColor,isSecondary:!0},(0,e.__)("Reset Color","qi-blocks"))))}}un.defaultProps={label:(0,e.__)("Color","qi-blocks"),defaultColor:"#000",setHEXValue:!1,blockAttributeKey:"",blockAttributes:{},setAttributes:()=>{},popup:!0,repeater:!1,repeaterItemIndex:0,repeaterItemKey:"",isSimpleRepeaterValue:!1,repeaterSetAttributes:()=>{},repeaterGetAttributes:()=>{}};const pn=un;class mn extends Pe.Component{getAttributeValue(){const{blockAttributeKey:e,blockAttributes:t,repeater:n,repeaterItemIndex:r,repeaterItemKey:o,repeaterGetAttributes:l}=this.props;let i=t[e];return n&&(i=l({key:o},r)||{}),U(i)}setAttributeValue(e){const{blockAttributeKey:t,setAttributes:n,repeater:r,repeaterItemIndex:o,repeaterItemKey:l,repeaterSetAttributes:i}=this.props;r?i({key:l},e,o):n({[t]:e})}componentDidMount(){const{url:e,id:t}=this.getAttributeValue();e&&(0,tt.isBlobURL)(e)&&!t&&this.setAttributeValue({url:"",alt:""})}onSelectVideo=({id:e,url:t,alt:n})=>{this.setAttributeValue({id:e,url:t,alt:n})};onSelectURL=e=>{this.setAttributeValue({id:null,url:e,alt:""})};onUploadError=e=>{const{noticeOperations:t}=this.props;t.createErrorNotice(e)};removeVideo=()=>{this.setAttributeValue({id:null,url:"",alt:""})};render(){const t={...this.props},{label:n,description:r,noticeUI:o}=t,{id:l,url:i}=this.getAttributeValue();return wp.element.createElement(_.BaseControl,{className:"qodef-video-option"},n&&wp.element.createElement("label",{className:"qodef-option-label"},n),r&&wp.element.createElement("p",{className:"qodef-option-description"},r),i?wp.element.createElement("div",{className:"qodef-video-option-inner"},(0,tt.isBlobURL)(i)&&wp.element.createElement("div",{className:"qodef-video-option-spinner"},wp.element.createElement(_.Spinner,null)),wp.element.createElement(Te.MediaUploadCheck,null,wp.element.createElement(Te.MediaUpload,{allowedTypes:["video"],value:l,onSelect:this.onSelectVideo,render:({open:t})=>wp.element.createElement(wp.element.Fragment,null,wp.element.createElement("video",{src:i}),wp.element.createElement("div",{className:"qodef-video-option-actions"},wp.element.createElement(_.Button,{icon:"edit",showTooltip:!0,label:(0,e.__)("Edit Video","qi-blocks"),onClick:t}),wp.element.createElement(_.Button,{icon:"trash",showTooltip:!0,label:(0,e.__)("Remove Video","qi-blocks"),onClick:this.removeVideo})))}))):wp.element.createElement(Te.MediaPlaceholder,{allowedTypes:["video"],icon:"format-video",onSelect:this.onSelectVideo,onSelectURL:this.onSelectURL,onError:this.onUploadError,notices:o}))}}mn.defaultProps={label:(0,e.__)("Video","qi-blocks"),description:"",blockAttributeKey:"",blockAttributes:{},setAttributes:()=>{},repeater:!1,repeaterItemIndex:0,repeaterItemKey:"",repeaterSetAttributes:()=>{},repeaterGetAttributes:()=>{}};const dn=(0,_.withNotices)(mn),bn=qiBlocksEditor.vars.defaultFontSize,fn=qiBlocksEditor.vars.defaultLineHeight,gn=e=>{const{convertorType:t,value:n,attributeKey:r}=e;let o=1;r.includes("FontSize")||r.includes("fontSize")?o=bn:(r.includes("LineHeight")||r.includes("lineHeight"))&&(o=fn);const l=e=>Math.round(parseInt(e,10)/o*100)/100,i=e=>Math.round(parseInt(e,10)/o*100)/100,a=e=>Math.round(parseFloat(e)/o*100),s=e=>Math.round(100*parseInt(e,10)/window.innerWidth),c=e=>Math.round(100*parseInt(e,10)/window.innerHeight),u=e=>Math.round(parseFloat(e)*o),p=e=>Math.round(parseFloat(e)*o/100),m=e=>Math.round(window.innerWidth*parseInt(e,10)/100),d=e=>Math.round(window.innerHeight*parseInt(e,10)/100);let b="";if(""!==n&&""!==r&&""!==t)switch(t){case"pxToEm":b=l(n);break;case"pxToRem":b=i(n);break;case"pxToP":b=a(n);break;case"pxToVw":b=s(n);break;case"pxToVh":b=c(n);break;case"emToPx":b=u(n);break;case"emToRem":case"remToRem":case"vwToVh":case"vhToVw":b=n;break;case"emToP":case"remToP":b=(e=>100*parseFloat(e))(n);break;case"emToVw":case"remToVw":b=(e=>s(u(e)))(n);break;case"emToVh":case"remToVh":b=(e=>c(u(e)))(n);break;case"remToPx":b=(e=>Math.round(parseFloat(e)*o))(n);break;case"pToPx":b=p(n);break;case"pToEm":case"pToRem":b=(e=>parseFloat(e)/100)(n);break;case"pToVw":b=(e=>s(p(e)))(n);break;case"pToVh":b=(e=>c(p(e)))(n);break;case"vwToPx":b=m(n);break;case"vwToEm":b=(e=>l(m(e)))(n);break;case"vwToRem":b=(e=>i(m(e)))(n);break;case"vwToP":b=(e=>a(m(e)))(n);break;case"vhToPx":b=d(n);break;case"vhToEm":b=(e=>l(d(e)))(n);break;case"vhToRem":b=(e=>i(d(e)))(n);break;case"vhToP":b=(e=>a(d(e)))(n)}return b};gn.defaultProps={convertorType:"pxToEm"};const hn=gn;class yn extends Pe.Component{constructor(){super(...arguments),this.state={screen:k()}}getScreenLabelSuffix(e){const t=e||this.state.screen;return B(t)}getAttributeValue(e,t=""){const{blockAttributes:n,allowScreens:r,repeater:o,repeaterItemIndex:l,repeaterItemKey:i,repeaterGetAttributes:a}=this.props;let s=e;r&&t&&(s=e+t);let c=n[s];return o&&(c=a({key:i,childKey:s},l)),U(c)}setAttributeValue(e,t,n=this.getScreenLabelSuffix()){const{setAttributes:r,allowScreens:o,repeater:l,repeaterItemIndex:i,repeaterItemKey:a,repeaterSetAttributes:s}=this.props;let c=e;o&&n&&(c=e+n),l?s({key:a,childKey:c},t,i):r({[c]:t})}onChangeUnitsValues(e,t,n,r){const o={...this.props},{rangeMax:l,rangeDecimalMax:i,allowUnitsConvertor:a}=o;let s=this.getAttributeValue(t);const c=s;r?(s=parseInt(s,10),s>l&&(s=l)):!r&&s>i&&(s=i),a?["emToRem","remToEm","vwToVh","vhToVw"].includes(n)||(this.setAttributeValue(e,hn({convertorType:n,value:c,attributeKey:t}),""),this.setAttributeValue(t,"","")):(this.setAttributeValue(e,s,""),this.setAttributeValue(t,"",""))}render(){const e={...this.props},{label:t,unitType:n,blockAttributeKey:r,rangeMax:o,rangeMin:l,rangeStep:i,rangeDecimalMax:a,rangeDecimalMin:s,rangeDecimalStep:c,optionType:u,allowReset:p,allowScreens:m,allowUnits:d,repeater:b,repeaterItemKey:f,isSimpleRepeaterValue:g}=e,h=this.getScreenLabelSuffix();let y=b&&!g?f:r;const v=`${y}Decimal`,k=`${y}Unit`,w=`${y}Tablet`,S=`${v}Tablet`,A=`${k}Tablet`,I=`${y}Mobile`,x=`${v}Mobile`,C=`${k}Mobile`;return e.onChangeScreen=e=>{this.setState({screen:e})},e.onChangeUnit=e=>{e.preventDefault();const t=b?200:0,n=e.target.getAttribute("data-unit"),r=this.getAttributeValue(k,h)||"px";this.setAttributeValue(k,n),setTimeout(()=>{if(n!==r){const e=`${r}To${N(n)}`;let t=y+h,o=v+h;"px"!==n&&(t=v+h,o=y+h),this.onChangeUnitsValues(t,o,e,"px"===n)}},t)},e.onChange=t=>{this.setAttributeValue(y,t),e.setCustomEventOnChange()},e.onChangeDecimal=t=>{let n=0;"decimal"===u&&void 0===t&&(n=200),setTimeout(()=>{this.setAttributeValue(v,t),e.setCustomEventOnChange()},n)},e.getPlaceholderValue=e=>{let t="";const n=this.getAttributeValue(y),r=this.getAttributeValue(v),o=this.getAttributeValue(w),l=this.getAttributeValue(S);return"Tablet"===h?e&&""===o?t=n:e||""!==l||(t=r):"Mobile"===h&&(e&&""===this.getAttributeValue(I)?t=""!==o?o:n:e||""!==this.getAttributeValue(x)||(t=""!==l?l:r)),t},wp.element.createElement(_.BaseControl,{className:"qodef-advanced-range-option"},wp.element.createElement("div",{className:"qodef-advanced-range-heading"},m?wp.element.createElement(Xe,{label:t,onChangeScreen:e.onChangeScreen}):wp.element.createElement("label",{className:"qodef-option-label"},t),d&&wp.element.createElement(We,{unitType:n,unitValue:this.getAttributeValue(k,h),onChangeUnit:e.onChangeUnit})),"desktop"===this.state.screen&&wp.element.createElement(wp.element.Fragment,null,(M(this.getAttributeValue(k))&&"decimal"!==u||!d&&"integer"===u)&&wp.element.createElement(_.RangeControl,{min:l,max:o,step:i,value:this.getAttributeValue(y),onChange:e.onChange,allowReset:p}),(j(this.getAttributeValue(k))||!d&&"decimal"===u)&&wp.element.createElement(_.RangeControl,{min:s,max:a,step:c,value:this.getAttributeValue(v),onChange:e.onChangeDecimal,allowReset:p})),"tablet"===this.state.screen&&wp.element.createElement(wp.element.Fragment,null,(M(this.getAttributeValue(A))&&"decimal"!==u||!d&&"integer"===u)&&wp.element.createElement(_.RangeControl,{min:l,max:o,step:i,value:this.getAttributeValue(w),afterIcon:e.getPlaceholderValue(!0),onChange:e.onChange,allowReset:p}),(j(this.getAttributeValue(A))||!d&&"decimal"===u)&&wp.element.createElement(_.RangeControl,{min:s,max:a,step:c,value:this.getAttributeValue(S),afterIcon:e.getPlaceholderValue(!1),onChange:e.onChangeDecimal,allowReset:p})),"mobile"===this.state.screen&&wp.element.createElement(wp.element.Fragment,null,(M(this.getAttributeValue(C))&&"decimal"!==u||!d&&"integer"===u)&&wp.element.createElement(_.RangeControl,{min:l,max:o,step:i,value:this.getAttributeValue(I),afterIcon:e.getPlaceholderValue(!0),onChange:e.onChange,allowReset:p}),(j(this.getAttributeValue(C))||!d&&"decimal"===u)&&wp.element.createElement(_.RangeControl,{min:s,max:a,step:c,value:this.getAttributeValue(x),afterIcon:e.getPlaceholderValue(!1),onChange:e.onChangeDecimal,allowReset:p})))}}yn.defaultProps={label:(0,e.__)("Default Label Text","qi-blocks"),unitType:"typography",blockAttributes:{},blockAttributeKey:"",setAttributes:()=>{},rangeMax:300,rangeMin:0,rangeStep:1,rangeDecimalMax:10,rangeDecimalMin:0,rangeDecimalStep:.01,optionType:"integer",allowReset:!0,screens:y,allowScreens:!1,allowUnits:!0,allowUnitsConvertor:!1,setCustomEventOnChange:()=>{},repeater:!1,repeaterItemIndex:0,repeaterItemKey:"",isSimpleRepeaterValue:!1,repeaterSetAttributes:()=>{},repeaterGetAttributes:()=>{}};const vn=yn,kn=t=>{const n={...t},{attrNameTemplate:r,attrName:o,blockAttributes:l,setAttributes:i,repeater:a,repeaterItemIndex:s,repeaterItemKey:c,repeaterSetAttributes:u,repeaterGetAttributes:p,previewScreen:m}=n,d=o||"Background",b=e=>P(r,d+e);n.getAttributeValue=(e,t="")=>{let n=e;t&&(n=e+t);let r=l[n];return a&&(r=p({key:c,childKey:n},s)),U(r)},n.setAttributeValue=(e,t,n="")=>{let r=e;n&&(r=e+n),a?u({key:c,childKey:r},t,s):i({[r]:t})};let f=B(m||k());return wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(cn,{label:(0,e.__)(`${d} Image`,"qi-blocks"),blockAttributeKey:b("Image"),blockAttributes:l,setAttributes:i,allowScreens:!0,repeater:a,repeaterItemIndex:s,repeaterItemKey:c,isSimpleRepeaterValue:!1,repeaterSetAttributes:u,repeaterGetAttributes:p}),n.getAttributeValue(b("Image"))&&n.getAttributeValue(b("Image")).url&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(et,{label:(0,e.__)(`${d} Position`,"qi-blocks"),blockAttributeKey:b("Position"),blockAttributes:l,setAttributes:i,selectOptions:F("background_position",!0,[{value:"custom",label:(0,e.__)("Custom","qi-blocks")}]),repeater:a,repeaterItemIndex:s,repeaterItemKey:c,repeaterSetAttributes:u,repeaterGetAttributes:p}),(""===f&&"custom"===n.getAttributeValue(b("Position"))||""!==f&&"custom"===n.getAttributeValue(b("Position"),f)||""!==f&&"custom"===n.getAttributeValue(b("Position"))&&["","custom"].includes(n.getAttributeValue(b("Position"),"Tablet"))&&""===n.getAttributeValue(b("Position"),f))&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(vn,{label:(0,e.__)("X Position","qi-blocks"),blockAttributeKey:b("XPosition"),setAttributes:i,blockAttributes:l,rangeMax:800,rangeMin:-800,rangeDecimalMax:100,rangeDecimalMin:-100,unitType:"xPosition",allowScreens:!0,repeater:a,repeaterItemIndex:s,repeaterItemKey:c,repeaterSetAttributes:u,repeaterGetAttributes:p}),wp.element.createElement(vn,{label:(0,e.__)("Y Position","qi-blocks"),blockAttributeKey:b("YPosition"),setAttributes:i,blockAttributes:l,rangeMax:800,rangeMin:-800,rangeDecimalMax:100,rangeDecimalMin:-100,unitType:"yPosition",allowScreens:!0,repeater:a,repeaterItemIndex:s,repeaterItemKey:c,repeaterSetAttributes:u,repeaterGetAttributes:p})),wp.element.createElement(_.SelectControl,{label:(0,e.__)(`${d} Attachment`,"qi-blocks"),value:n.getAttributeValue(b("Attachment")),options:F("background_attachment")||"",onChange:e=>n.setAttributeValue(b("Attachment"),e)}),wp.element.createElement(et,{label:(0,e.__)(`${d} Repeat`,"qi-blocks"),blockAttributeKey:b("Repeat"),blockAttributes:l,setAttributes:i,selectOptions:F("background_repeat"),repeater:a,repeaterItemIndex:s,repeaterItemKey:c,repeaterSetAttributes:u,repeaterGetAttributes:p}),wp.element.createElement(et,{label:(0,e.__)(`${d} Size`,"qi-blocks"),blockAttributeKey:b("Size"),blockAttributes:l,setAttributes:i,selectOptions:F("background_size",!0,[{value:"custom",label:(0,e.__)("Custom","qi-blocks")}]),repeater:a,repeaterItemIndex:s,repeaterItemKey:c,repeaterSetAttributes:u,repeaterGetAttributes:p}),"custom"===n.getAttributeValue(b("Size"),f)&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(vn,{label:(0,e.__)("Custom Width","qi-blocks"),blockAttributeKey:b("SizeWidth"),setAttributes:i,blockAttributes:l,rangeMax:1e3,rangeMin:0,rangeDecimalMax:100,rangeDecimalMin:0,unitType:"xPosition",allowScreens:!0,repeater:a,repeaterItemIndex:s,repeaterItemKey:c,repeaterSetAttributes:u,repeaterGetAttributes:p}))))};kn.defaultProps={attrNameTemplate:"",attrName:"Background",blockAttributes:{},setAttributes:()=>{},repeater:!1,repeaterItemIndex:0,repeaterItemKey:"",repeaterSetAttributes:()=>{},repeaterGetAttributes:()=>{},previewScreen:""};const _n=kn,wn=t=>{const n={...t},{attrNameTemplate:r,blockAttributes:o,setAttributes:l,includeVideoBG:i,repeater:a,repeaterItemIndex:s,repeaterItemKey:c,repeaterSetAttributes:u,repeaterGetAttributes:p,previewScreen:m}=n,d=e=>P(r,e);n.getAttributeValue=(e,t="")=>{let n=o[e];if(a){let r=e;t&&(r=e+t),n=p({key:c,childKey:r},s)}return U(n)},n.setAttributeValue=(e,t,n="")=>{if(a){let r=e;n&&(r=e+n),u({key:c,childKey:r},t,s)}else l({[e+n]:t})};const b=[{label:(0,e.__)("Classic","qi-blocks"),value:""},{label:(0,e.__)("Gradient","qi-blocks"),value:"gradient"}];return i&&b.push({label:(0,e.__)("Video","qi-blocks"),value:"video"}),wp.element.createElement("div",{className:"qodef-background-panel"},wp.element.createElement(_.SelectControl,{label:(0,e.__)("Background Type","qi-blocks"),value:n.getAttributeValue(d("BackgroundType")),options:b,onChange:e=>n.setAttributeValue(d("BackgroundType"),e)}),""===n.getAttributeValue(d("BackgroundType"))&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(pn,{label:(0,e.__)("Background Color","qi-blocks"),blockAttributeKey:d("BackgroundColor"),blockAttributes:o,setAttributes:l,repeater:a,repeaterItemIndex:s,repeaterItemKey:c,repeaterSetAttributes:u,repeaterGetAttributes:p}),wp.element.createElement(_n,{attrNameTemplate:r,blockAttributes:o,setAttributes:l,repeater:a,repeaterItemIndex:s,repeaterItemKey:c,repeaterSetAttributes:u,repeaterGetAttributes:p,previewScreen:m})),"gradient"===n.getAttributeValue(d("BackgroundType"))&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(pn,{label:(0,e.__)("First Color","qi-blocks"),blockAttributeKey:d("BackgroundGradientColor1"),blockAttributes:o,setAttributes:l,repeater:a,repeaterItemIndex:s,repeaterItemKey:c,repeaterSetAttributes:u,repeaterGetAttributes:p}),wp.element.createElement(_.RangeControl,{label:(0,e.__)("Location","qi-blocks"),value:n.getAttributeValue(d("BackgroundGradientLocation1")),onChange:e=>n.setAttributeValue(d("BackgroundGradientLocation1"),e),min:0,max:100,step:1}),wp.element.createElement(pn,{label:(0,e.__)("Second Color","qi-blocks"),blockAttributeKey:d("BackgroundGradientColor2"),blockAttributes:o,setAttributes:l,repeater:a,repeaterItemIndex:s,repeaterItemKey:c,repeaterSetAttributes:u,repeaterGetAttributes:p}),wp.element.createElement(_.RangeControl,{label:(0,e.__)("Location","qi-blocks"),value:n.getAttributeValue(d("BackgroundGradientLocation2")),onChange:e=>n.setAttributeValue(d("BackgroundGradientLocation2"),e),min:0,max:100,step:1}),wp.element.createElement(_.SelectControl,{label:(0,e.__)("Gradient Type","qi-blocks"),value:n.getAttributeValue(d("BackgroundGradientType")),options:[{label:(0,e.__)("Linear","qi-blocks"),value:"linear"},{label:(0,e.__)("Radial","qi-blocks"),value:"radial"}],onChange:e=>n.setAttributeValue(d("BackgroundGradientType"),e)}),"linear"===n.getAttributeValue(d("BackgroundGradientType"))&&wp.element.createElement(_.RangeControl,{label:(0,e.__)("Angle","qi-blocks"),value:n.getAttributeValue(d("BackgroundGradientTypeAngle")),onChange:e=>n.setAttributeValue(d("BackgroundGradientTypeAngle"),e),min:0,max:360,step:1}),"radial"===n.getAttributeValue(d("BackgroundGradientType"))&&wp.element.createElement(_.SelectControl,{label:(0,e.__)("Position","qi-blocks"),value:n.getAttributeValue(d("BackgroundGradientTypePosition")),options:F("background_position",!1),onChange:e=>n.setAttributeValue(d("BackgroundGradientTypePosition"),e)})),"video"===n.getAttributeValue(d("BackgroundType"))&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(dn,{label:(0,e.__)("Video Link","qi-blocks"),description:(0,e.__)("Self hosted video file (mp4 is recommended)","qi-blocks"),blockAttributeKey:d("BackgroundVideoLink"),blockAttributes:o,setAttributes:l,repeater:a,repeaterItemIndex:s,repeaterItemKey:c,repeaterSetAttributes:u,repeaterGetAttributes:p}),wp.element.createElement(_.TextControl,{type:"number",label:(0,e.__)("Start Time","qi-blocks"),help:(0,e.__)("Specify a start time (in seconds)","qi-blocks"),value:n.getAttributeValue(d("BackgroundVideoStartTime")),onChange:e=>n.setAttributeValue(d("BackgroundVideoStartTime"),L(e))}),wp.element.createElement(_.TextControl,{type:"number",label:(0,e.__)("End Time","qi-blocks"),help:(0,e.__)("Specify an end time (in seconds)","qi-blocks"),value:n.getAttributeValue(d("BackgroundVideoEndTime")),onChange:e=>n.setAttributeValue(d("BackgroundVideoEndTime"),L(e))}),wp.element.createElement(S,{label:(0,e.__)("Play Once","qi-blocks"),blockAttributeKey:d("BackgroundVideoPlayOnce"),blockAttributes:o,setAttributes:l,repeater:a,repeaterItemIndex:s,repeaterItemKey:c,repeaterSetAttributes:u,repeaterGetAttributes:p}),wp.element.createElement(S,{label:(0,e.__)("Play On Mobile","qi-blocks"),blockAttributeKey:d("BackgroundVideoPlayOnMobile"),blockAttributes:o,setAttributes:l,repeater:a,repeaterItemIndex:s,repeaterItemKey:c,repeaterSetAttributes:u,repeaterGetAttributes:p}),wp.element.createElement(cn,{label:(0,e.__)("Background Fallback","qi-blocks"),blockAttributeKey:d("BackgroundVideoFallbackImage"),blockAttributes:o,setAttributes:l,repeater:a,repeaterItemIndex:s,repeaterItemKey:c,repeaterSetAttributes:u,repeaterGetAttributes:p})))};wn.defaultProps={attrNameTemplate:"",blockAttributes:{},setAttributes:()=>{},includeVideoBG:!1,repeater:!1,repeaterItemIndex:0,repeaterItemKey:"",repeaterSetAttributes:()=>{},repeaterGetAttributes:()=>{},previewScreen:""};const Sn=wn,An=t=>{const n={...t},{attrNameTemplate:r,blockAttributes:o,setAttributes:l,disableWidthDirections:i,repeater:a,repeaterItemIndex:s,repeaterItemKey:c,repeaterSetAttributes:u,repeaterGetAttributes:p}=n,m=e=>P(r,e);return n.getAttributeValue=(e,t="")=>{let n=o[e];if(a){let r=e;t&&(r=e+t),n=p({key:c,childKey:r},s)}return U(n)},n.setAttributeValue=(e,t,n="")=>{if(a){let r=e;n&&(r=e+n),u({key:c,childKey:r},t,s)}else l({[e+n]:t})},wp.element.createElement("div",{className:"qodef-border-panel"},wp.element.createElement(_.SelectControl,{label:(0,e.__)("Border Type","qi-blocks"),value:n.getAttributeValue(m("BorderStyle")),options:[{label:(0,e.__)("Default","qi-blocks"),value:""},{label:(0,e.__)("None","qi-blocks"),value:"none"},{label:(0,e.__)("Double","qi-blocks"),value:"double"},{label:(0,e.__)("Groove","qi-blocks"),value:"groove"},...F("border_style",!1)],onChange:e=>n.setAttributeValue(m("BorderStyle"),e)}),!["","none"].includes(o[m("BorderStyle")])&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(Je,{label:(0,e.__)("Border Width","qi-blocks"),attrName:m("BorderWidth"),blockAttributes:o,setAttributes:l,allowUnitControl:!1,disableDirections:i,rangeMax:20,repeater:a,repeaterItemIndex:s,repeaterItemKey:c,repeaterSetAttributes:u,repeaterGetAttributes:p}),(n.allowBorderColor??!0)&&wp.element.createElement(pn,{label:(0,e.__)("Border Color","qi-blocks"),blockAttributeKey:m("BorderColor"),blockAttributes:o,setAttributes:l,repeater:a,repeaterItemIndex:s,repeaterItemKey:c,repeaterSetAttributes:u,repeaterGetAttributes:p})),(n.allowBorderRadius??!0)&&wp.element.createElement(Je,{label:(0,e.__)("Border Radius","qi-blocks"),attrName:m("BorderRadius"),blockAttributes:o,setAttributes:l,unitType:"pxAndPercent",repeater:a,repeaterItemIndex:s,repeaterItemKey:c,repeaterSetAttributes:u,repeaterGetAttributes:p}))};An.defaultProps={attrNameTemplate:"",blockAttributes:{},setAttributes:()=>{},allowBorderColor:!0,allowBorderRadius:!0,disableWidthDirections:[],repeater:!1,repeaterItemIndex:0,repeaterItemKey:"",repeaterSetAttributes:()=>{},repeaterGetAttributes:()=>{}};const In=An,xn=t=>{const n={...t},{attrNameTemplate:r,blockAttributes:o,setAttributes:l,excludeOptions:i}=n,a=e=>P(r,e),[s,c]=(0,Pe.useState)(!1);let u=["qodef-box-shadow-panel"];return n.popup&&u.push("qodef--has-popup"),s&&u.push("qodef--opened"),n.onClick=()=>{c(e=>!e),window.addEventListener("click",e=>{const t=document.querySelectorAll(".qodef-box-shadow-panel.qodef--opened");t.length&&t.forEach(t=>{t.contains(e.target)||c(!1)})})},wp.element.createElement("div",{className:u.join(" ")},wp.element.createElement("div",{className:"qodef-box-shadow-panel-heading"},n.label&&wp.element.createElement("label",{className:"qodef-option-label"},n.label),n.popup&&wp.element.createElement(_.Button,{icon:"edit",showTooltip:!0,label:(0,e.__)("Open Panel","qi-blocks"),onClick:n.onClick})),wp.element.createElement("div",{className:"qodef-box-shadow-panel-content"},wp.element.createElement(pn,{label:(0,e.__)("Color","qi-blocks"),blockAttributeKey:a("BoxShadowColor"),blockAttributes:o,setAttributes:l,popup:!1}),wp.element.createElement(_.RangeControl,{label:(0,e.__)("Horizontal","qi-blocks"),value:o[a("BoxShadowHorizontal")],onChange:e=>l({[a("BoxShadowHorizontal")]:e}),min:-100,max:100,step:1,allowReset:!0}),wp.element.createElement(_.RangeControl,{label:(0,e.__)("Vertical","qi-blocks"),value:o[a("BoxShadowVertical")],onChange:e=>l({[a("BoxShadowVertical")]:e}),min:-100,max:100,step:1,allowReset:!0}),wp.element.createElement(_.RangeControl,{label:(0,e.__)("Blur","qi-blocks"),value:o[a("BoxShadowBlur")],onChange:e=>l({[a("BoxShadowBlur")]:e}),min:0,max:100,step:1,allowReset:!0}),wp.element.createElement(_.RangeControl,{label:(0,e.__)("Spread","qi-blocks"),value:o[a("BoxShadowSpread")],onChange:e=>l({[a("BoxShadowSpread")]:e}),min:-100,max:100,step:1,allowReset:!0}),(p="position",!(i&&i.length&&i.includes(p))&&wp.element.createElement(_.SelectControl,{label:(0,e.__)("Position","qi-blocks"),value:o[a("BoxShadowPosition")],options:[{label:(0,e.__)("Outline","qi-blocks"),value:""},{label:(0,e.__)("Inset","qi-blocks"),value:"inset"}],onChange:e=>l({[a("BoxShadowPosition")]:e})}))));var p};xn.defaultProps={label:(0,e.__)("Box Shadow","qi-blocks"),attrNameTemplate:"",blockAttributes:{},setAttributes:()=>{},excludeOptions:[],popup:!1};const Cn=xn;class qn extends Pe.Component{render(){const{blockAttributes:t,setAttributes:n,excludePanels:r,previewScreen:o,blockName:l}=this.props,i=(e,t="")=>P("",e,t),a=["advanced","motion-effects","background","border","positioning","responsive"];r&&r.length&&r.forEach(e=>{a.splice(a.indexOf(e),1)});let s=B(o);return wp.element.createElement("div",{className:"qodef-advanced-panel"},a.includes("advanced")&&wp.element.createElement(_.PanelBody,{title:(0,e.__)("Advanced","qi-blocks")},wp.element.createElement(Je,{label:(0,e.__)("Margin","qi-blocks"),attrName:i("Margin"),blockAttributes:t,setAttributes:n}),wp.element.createElement(Je,{label:(0,e.__)("Padding","qi-blocks"),attrName:i("Padding"),blockAttributes:t,setAttributes:n}),wp.element.createElement(_.TextControl,{type:"number",label:(0,e.__)("Z-Index","qi-blocks"),value:t[i("zIndex")],onChange:e=>n({[i("zIndex")]:L(e)})}),wp.element.createElement(_.TextControl,{label:(0,e.__)("CSS ID","qi-blocks"),value:t[i("cssId")],onChange:e=>n({[i("cssId")]:e})}),wp.element.createElement(_.TextControl,{label:(0,e.__)("CSS Classes","qi-blocks"),value:t[i("cssClasses")],onChange:e=>n({[i("cssClasses")]:e})})),a.includes("motion-effects")&&wp.element.createElement(_.PanelBody,{title:(0,e.__)("Motion Effects","qi-blocks"),initialOpen:!1},wp.element.createElement(_.SelectControl,{label:(0,e.__)("Entrance Animation","qi-blocks"),value:t[i("EntranceAnimation")],options:[{label:(0,e.__)("None","qi-blocks"),value:""},{label:(0,e.__)("Back In Down","qi-blocks"),value:"backInDown"},{label:(0,e.__)("Back In Left","qi-blocks"),value:"backInLeft"},{label:(0,e.__)("Back In Right","qi-blocks"),value:"backInRight"},{label:(0,e.__)("Back In Up","qi-blocks"),value:"backInUp"},{label:(0,e.__)("Bounce","qi-blocks"),value:"bounce"},{label:(0,e.__)("Bounce In","qi-blocks"),value:"bounceIn"},{label:(0,e.__)("Bounce In Down","qi-blocks"),value:"bounceInDown"},{label:(0,e.__)("Bounce In Left","qi-blocks"),value:"bounceInLeft"},{label:(0,e.__)("Bounce In Right","qi-blocks"),value:"bounceInRight"},{label:(0,e.__)("Bounce In Up","qi-blocks"),value:"bounceInUp"},{label:(0,e.__)("Fade In","qi-blocks"),value:"fadeIn"},{label:(0,e.__)("Fade In Down","qi-blocks"),value:"fadeInDown"},{label:(0,e.__)("Fade In Down Big","qi-blocks"),value:"fadeInDownBig"},{label:(0,e.__)("Fade In Left","qi-blocks"),value:"fadeInLeft"},{label:(0,e.__)("Fade In Left Big","qi-blocks"),value:"fadeInLeftBig"},{label:(0,e.__)("Fade In Right","qi-blocks"),value:"fadeInRight"},{label:(0,e.__)("Fade In Right Big","qi-blocks"),value:"fadeInRightBig"},{label:(0,e.__)("Fade In Up","qi-blocks"),value:"fadeInUp"},{label:(0,e.__)("Fade In Up Big","qi-blocks"),value:"fadeInUpBig"},{label:(0,e.__)("Fade In Top Left","qi-blocks"),value:"fadeInTopLeft"},{label:(0,e.__)("Fade In Top Right","qi-blocks"),value:"fadeInTopRight"},{label:(0,e.__)("Fade In Bottom Left","qi-blocks"),value:"fadeInBottomLeft"},{label:(0,e.__)("Fade In Bottom Right","qi-blocks"),value:"fadeInBottomRight"},{label:(0,e.__)("Flash","qi-blocks"),value:"flash"},{label:(0,e.__)("Flip","qi-blocks"),value:"flip"},{label:(0,e.__)("Flip In X","qi-blocks"),value:"flipInX"},{label:(0,e.__)("Flip In Y","qi-blocks"),value:"flipInY"},{label:(0,e.__)("Head Shake","qi-blocks"),value:"headShake"},{label:(0,e.__)("Heart Beat","qi-blocks"),value:"heartBeat"},{label:(0,e.__)("Jack In The Box","qi-blocks"),value:"jackInTheBox"},{label:(0,e.__)("Jello","qi-blocks"),value:"jello"},{label:(0,e.__)("Light Speed In Right","qi-blocks"),value:"lightSpeedInRight"},{label:(0,e.__)("Light Speed In Left","qi-blocks"),value:"lightSpeedInLeft"},{label:(0,e.__)("Pulse","qi-blocks"),value:"pulse"},{label:(0,e.__)("Roll In","qi-blocks"),value:"rollIn"},{label:(0,e.__)("Rotate In","qi-blocks"),value:"rotateIn"},{label:(0,e.__)("Rotate In Down Left","qi-blocks"),value:"rotateInDownLeft"},{label:(0,e.__)("Rotate In Down Right","qi-blocks"),value:"rotateInDownRight"},{label:(0,e.__)("Rotate In Up Left","qi-blocks"),value:"rotateInUpLeft"},{label:(0,e.__)("Rotate In Up Right","qi-blocks"),value:"rotateInUpRight"},{label:(0,e.__)("Rubber Band","qi-blocks"),value:"rubberBand"},{label:(0,e.__)("Shake X","qi-blocks"),value:"shakeX"},{label:(0,e.__)("Shake Y","qi-blocks"),value:"shakeY"},{label:(0,e.__)("Slide In Down","qi-blocks"),value:"slideInDown"},{label:(0,e.__)("Slide In Left","qi-blocks"),value:"slideInLeft"},{label:(0,e.__)("Slide In Right","qi-blocks"),value:"slideInRight"},{label:(0,e.__)("Slide In Up","qi-blocks"),value:"slideInUp"},{label:(0,e.__)("Swing","qi-blocks"),value:"swing"},{label:(0,e.__)("Tada","qi-blocks"),value:"tada"},{label:(0,e.__)("Wobble","qi-blocks"),value:"wobble"},{label:(0,e.__)("Zoom In","qi-blocks"),value:"zoomIn"},{label:(0,e.__)("Zoom In Down","qi-blocks"),value:"zoomInDown"},{label:(0,e.__)("Zoom In Left","qi-blocks"),value:"zoomInLeft"},{label:(0,e.__)("Zoom In Right","qi-blocks"),value:"zoomInRight"},{label:(0,e.__)("Zoom In Up","qi-blocks"),value:"zoomInUp"}],onChange:e=>{n({[i("EntranceAnimation")]:e}),setTimeout(()=>{qiBlocksEditor.qodefTriggerBlockAnimation.triggerAnimation(t.uniqueClass)},300)}}),void 0!==t[i("EntranceAnimation")]&&""!==t[i("EntranceAnimation")]&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(_.SelectControl,{label:(0,e.__)("Animation Duration","qi-blocks"),value:t[i("EntranceAnimationDuration")],options:[{label:(0,e.__)("Slower","qi-blocks"),value:"slower"},{label:(0,e.__)("Slow","qi-blocks"),value:"slow"},{label:(0,e.__)("Normal","qi-blocks"),value:"normal"},{label:(0,e.__)("Fast","qi-blocks"),value:"fast"},{label:(0,e.__)("Faster","qi-blocks"),value:"faster"}],onChange:e=>{n({[i("EntranceAnimationDuration")]:e}),setTimeout(()=>{qiBlocksEditor.qodefTriggerBlockAnimation.triggerAnimation(t.uniqueClass)},300)}}),wp.element.createElement(_.TextControl,{type:"number",label:(0,e.__)("Animation Delay (ms)","qi-blocks"),value:t[i("EntranceAnimationDelay")],min:0,step:100,onChange:e=>{n({[i("EntranceAnimationDelay")]:L(e)}),qiBlocksEditor.qodefTriggerBlockAnimation.triggerAnimation(t.uniqueClass,!0)}}))),a.includes("background")&&wp.element.createElement(_.PanelBody,{title:(0,e.__)("Background","qi-blocks"),initialOpen:!1},wp.element.createElement(Sn,{attrNameTemplate:"Advanced",blockAttributes:t,setAttributes:n,previewScreen:o})),a.includes("border")&&wp.element.createElement(_.PanelBody,{title:(0,e.__)("Border","qi-blocks"),initialOpen:!1},wp.element.createElement(In,{attrNameTemplate:"Advanced",blockAttributes:t,setAttributes:n}),wp.element.createElement(Cn,{attrNameTemplate:"Advanced",blockAttributes:t,setAttributes:n,popup:!0})),a.includes("positioning")&&wp.element.createElement(_.PanelBody,{title:(0,e.__)("Positioning","qi-blocks"),initialOpen:!1},wp.element.createElement(et,{label:(0,e.__)("Width","qi-blocks"),blockAttributeKey:i("BlockWidth"),blockAttributes:t,setAttributes:n,selectOptions:[{label:(0,e.__)("Default","qi-blocks"),value:""},{label:(0,e.__)("Full Width (100%)","qi-blocks"),value:"full-width"},{label:(0,e.__)("Inline (auto)","qi-blocks"),value:"inline"},{label:(0,e.__)("Custom","qi-blocks"),value:"custom"}]}),(""===s&&"custom"===t[i("BlockWidth")]||""!==s&&"custom"===t[i("BlockWidth",s)]||""!==s&&"custom"===t[i("BlockWidth")]&&["","custom"].includes(t[i("BlockWidth","Tablet")])&&""===t[i("BlockWidth",s)])&&wp.element.createElement(vn,{label:(0,e.__)("Custom Width","qi-blocks"),blockAttributeKey:i("BlockCustomWidth"),setAttributes:n,blockAttributes:t,rangeMax:1e3,rangeDecimalMax:100,unitType:"pxPercentVw",allowScreens:!0}),wp.element.createElement(_.SelectControl,{label:(0,e.__)("Position","qi-blocks"),value:t[i("BlockPosition")],options:[{label:(0,e.__)("Default","qi-blocks"),value:""},{label:(0,e.__)("Absolute","qi-blocks"),value:"absolute"},{label:(0,e.__)("Relative","qi-blocks"),value:"relative"},{label:(0,e.__)("Fixed","qi-blocks"),value:"fixed"}],onChange:e=>{n({[i("BlockPosition")]:e})}}),""!==t[i("BlockPosition")]&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(_.SelectControl,{label:(0,e.__)("Horizontal Orientation","qi-blocks"),value:t[i("PositionHorizontalOrientation")],options:[{label:(0,e.__)("Left","qi-blocks"),value:"left"},{label:(0,e.__)("Right","qi-blocks"),value:"right"}],onChange:e=>n({[i("PositionHorizontalOrientation")]:e})}),wp.element.createElement(vn,{label:(0,e.__)("Offset","qi-blocks"),blockAttributeKey:i("PositionHorizontalOffset"),setAttributes:n,blockAttributes:t,rangeMax:1e3,rangeMin:-1e3,rangeDecimalMax:100,rangeDecimalMin:-100,unitType:"measure",allowScreens:!0}),wp.element.createElement(_.SelectControl,{label:(0,e.__)("Vertical Orientation","qi-blocks"),value:t[i("PositionVerticalOrientation")],options:[{label:(0,e.__)("Top","qi-blocks"),value:"Top"},{label:(0,e.__)("Bottom","qi-blocks"),value:"bottom"}],onChange:e=>n({[i("PositionVerticalOrientation")]:e})}),wp.element.createElement(vn,{label:(0,e.__)("Offset","qi-blocks"),blockAttributeKey:i("PositionVerticalOffset"),setAttributes:n,blockAttributes:t,rangeMax:1e3,rangeMin:-1e3,rangeDecimalMax:100,rangeDecimalMin:-100,unitType:"measure",allowScreens:!0}))),a.includes("responsive")&&wp.element.createElement(_.PanelBody,{title:(0,e.__)("Responsive","qi-blocks"),initialOpen:!1},wp.element.createElement(I,{blockAttributes:t,setAttributes:n})),qiBlocksEditor.vars?.advancedBlockPanel&&wp.element.createElement(wp.element.Fragment,null,Object.entries(qiBlocksEditor.vars.advancedBlockPanel).map(([t,n],r)=>{let o="";if("help"===t?o=(0,e.__)("Help","qi-blocks"):"features"===t&&(o=(0,e.__)("Get more features","qi-blocks")),n.length<=0||"blocks"===t)return"";const i="help"===t,a=l?l.replace("qi-blocks/",""):"",s=n.map((n,r)=>{let o=n?.link;if(0===r&&"help"===t&&a){const e=qiBlocksEditor.vars.advancedBlockPanel?.blocks[a]||"";e&&e?.demo&&(o=e?.demo+"?utm_source=dash&utm_medium=qiblocks&utm_campaign=blocks")}return wp.element.createElement("div",{className:"qodef-m-item"},n?.image?wp.element.createElement(wp.element.Fragment,null,wp.element.createElement("a",{className:"qodef-m-item-image-link",href:n?.link,target:"_blank",rel:"noreferrer"},wp.element.createElement("img",{className:"qodef-m-item-image",src:n.image,alt:n?.title})),wp.element.createElement("p",{className:"qodef-m-item-title"},n?.title),wp.element.createElement("a",{className:"qodef-m-item-button",href:n?.link,target:"_blank",rel:"noreferrer"},(0,e.__)("Upgrade","qi-blocks"))):wp.element.createElement("a",{className:"qodef-m-item-link",href:o,target:"_blank",rel:"noreferrer"},n?.title))});return wp.element.createElement(_.PanelBody,{title:o,className:`qodef-advanced-block-panel-features ${"qodef--"+t} qodef-m`,key:r,initialOpen:i},s)})))}}qn.defaultProps={blockAttributes:{},setAttributes:()=>{},excludePanels:[],previewScreen:"desktop",blockName:""};const En=(0,i.withSelect)(e=>{let t="desktop";return e("core/edit-post")&&(t="function"==typeof e("core/editor")?.getDeviceType?e("core/editor")?.getDeviceType()?.toLowerCase():e("core/edit-post")?.__experimentalGetPreviewDeviceType()?.toLowerCase()),e("core/edit-site")&&(t="function"==typeof e("core/editor")?.getDeviceType?e("core/editor")?.getDeviceType()?.toLowerCase():e("core/edit-site").__experimentalGetPreviewDeviceType().toLowerCase()),{previewScreen:t,blockName:e("core/block-editor")?.getSelectedBlock()?.name}})(qn);class Tn extends Pe.Component{render(){const{attrNameTemplate:t,blockAttributes:n,setAttributes:r,allowColumnsGap:o,allowColumnsGapSlider:l,allowColumnsResponsive:i,columnsMinNumber:a,columnsMaxNumber:s}=this.props,c=e=>P(t,e);return wp.element.createElement(_.BaseControl,null,wp.element.createElement(vn,{label:(0,e.__)("Number of Columns","qi-blocks"),blockAttributeKey:c("Columns"),setAttributes:r,blockAttributes:n,rangeMax:s,rangeMin:a,allowUnits:!1}),o&&wp.element.createElement(_.SelectControl,{label:(0,e.__)("Columns Gap","qi-blocks"),options:F("column_gap",!1),value:n[c("ColumnsGap")]||"",onChange:e=>r({[c("ColumnsGap")]:e})}),l&&wp.element.createElement(vn,{label:(0,e.__)("Space Between Items","qi-blocks"),blockAttributeKey:c("SpaceBetweenItems"),setAttributes:r,blockAttributes:n,rangeMax:150,rangeMin:0,rangeStep:1,allowScreens:!0,unitType:"pxEmVw"}),i&&wp.element.createElement(_.SelectControl,{label:(0,e.__)("Columns Responsive","qi-blocks"),options:F("columns_responsive",!1),value:n[c("ColumnsResponsive")]||"",onChange:e=>r({[c("ColumnsResponsive")]:e})}),i&&"custom"===n[c("ColumnsResponsive")]&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(vn,{label:(0,e.__)("Number of Columns 1367px - 1440px","qi-blocks"),blockAttributeKey:c("Columns1440"),setAttributes:r,blockAttributes:n,rangeMax:s,rangeMin:a,allowUnits:!1}),wp.element.createElement(vn,{label:(0,e.__)("Number of Columns 1025px - 1366px","qi-blocks"),blockAttributeKey:c("Columns1366"),setAttributes:r,blockAttributes:n,rangeMax:s,rangeMin:a,allowUnits:!1}),wp.element.createElement(vn,{label:(0,e.__)("Number of Columns 769px - 1024px","qi-blocks"),blockAttributeKey:c("Columns1024"),setAttributes:r,blockAttributes:n,rangeMax:s,rangeMin:a,allowUnits:!1}),wp.element.createElement(vn,{label:(0,e.__)("Number of Columns 681px - 768px","qi-blocks"),blockAttributeKey:c("Columns768"),setAttributes:r,blockAttributes:n,rangeMax:s,rangeMin:a,allowUnits:!1}),wp.element.createElement(vn,{label:(0,e.__)("Number of Columns 481px - 680px","qi-blocks"),blockAttributeKey:c("Columns680"),setAttributes:r,blockAttributes:n,rangeMax:s,rangeMin:a,allowUnits:!1}),wp.element.createElement(vn,{label:(0,e.__)("Number of Columns 0 - 480px","qi-blocks"),blockAttributeKey:c("Columns480"),setAttributes:r,blockAttributes:n,rangeMax:s,rangeMin:a,allowUnits:!1})))}}Tn.defaultProps={attrNameTemplate:"",blockAttributeKey:"",blockAttributes:{},setAttributes:()=>{},allowColumnsGap:!0,allowColumnsGapSlider:!1,allowColumnsResponsive:!0,columnsMinNumber:1,columnsMaxNumber:6};const On=Tn,Pn=e=>{const{blockAttributes:t}=e,n=V(e,"all")&&e.attrNameTemplate||"",r=!V(e,"all")||(e.allowColumnsGap??!0);return Be()("qodef-gutenberg-section","qodef--columns",{[`qodef-col-num--${t[P(n,"Columns")]}`]:t[P(n,"Columns")],[`qodef-gutter--${t[P(n,"ColumnsGap")]}`]:r&&t[P(n,"ColumnsGap")],[`qodef-responsive--${t[P(n,"ColumnsResponsive")]}`]:t[P(n,"ColumnsResponsive")],[`qodef-col-num--1440--${t[P(n,"Columns1440")]}`]:"custom"===t[P(n,"ColumnsResponsive")]&&t[P(n,"Columns1440")],[`qodef-col-num--1366--${t[P(n,"Columns1366")]}`]:"custom"===t[P(n,"ColumnsResponsive")]&&t[P(n,"Columns1366")],[`qodef-col-num--1024--${t[P(n,"Columns1024")]}`]:"custom"===t[P(n,"ColumnsResponsive")]&&t[P(n,"Columns1024")],[`qodef-col-num--768--${t[P(n,"Columns768")]}`]:"custom"===t[P(n,"ColumnsResponsive")]&&t[P(n,"Columns768")],[`qodef-col-num--680--${t[P(n,"Columns680")]}`]:"custom"===t[P(n,"ColumnsResponsive")]&&t[P(n,"Columns680")],[`qodef-col-num--480--${t[P(n,"Columns480")]}`]:"custom"===t[P(n,"ColumnsResponsive")]&&t[P(n,"Columns480")]})};Pn.defaultProps={attrNameTemplate:"",allowColumnsGap:!0};const Nn=jQuery;var Bn=n.n(Nn);const Rn={init:function(){this.holder=Bn()(".qodef-repeater-option .qodef-repeater-items"),this.holder.length&&this.holder.each(function(){Rn.initItem(Bn()(this))})},initItem:function(e){e&&e.find(".qodef-repeater-item-heading").off().on("click touchstart",function(e){const t=Bn()(this),n=t.parents(".qodef-repeater-item");e.target.classList.contains("qodef-repeater-button")||e.target.classList.contains("dashicon")||(n.hasClass("qodef--active")?(n.removeClass("qodef--active"),t.siblings(".qodef-repeater-item-options").slideUp()):(t.siblings(".qodef-repeater-item-options").slideDown(),n.addClass("qodef--active"),n.siblings().removeClass("qodef--active"),n.siblings().find(".qodef-repeater-item-options").slideUp()))})}},Dn=Rn;function Mn(){return Mn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mn.apply(null,arguments)}class jn extends Pe.Component{constructor(){super(...arguments),this.state={addedItemIndex:""},this.handleAddItem.bind(this),this.handleOnChange.bind(this),this.handleOnRemove.bind(this),this.handleDuplicateItem.bind(this)}componentDidMount(){this.initControlScript()}initControlScript(){setTimeout(()=>{"object"==typeof Dn&&Dn.init()},600)}getItems=()=>{const{blockAttributeKey:e,blockAttributes:t}=this.props,n=t[e];return V(this.props,"all")&&n.length?JSON.parse(JSON.stringify(n)):[]};handleAddItem=()=>{const{options:e,blockAttributeKey:t,setAttributes:n}=this.props,r=this.getItems();let o={};e.map(e=>{o[e.optionKey]=e.optionDefaultValue||""}),r.push(o),this.setState({addedItemIndex:r.length-1}),n({[t]:r}),this.initControlScript()};handleOnChange=(e,t,n)=>{const{blockAttributeKey:r,setAttributes:o}=this.props,l=this.getItems();"object"==typeof e?e.key&&e.childKey?l[n][e.key][e.childKey]=t:l[n][e.key]=t:l[n][e]=t,o({[r]:l})};getRepeaterItemValues=(e,t)=>{const n=this.getItems();let r;return r="object"==typeof e?e.key&&e.childKey?n[t][e.key][e.childKey]:n[t][e.key]:n[t][e],U(r)};handleOnRemove=e=>{const{blockAttributeKey:t,setAttributes:n}=this.props,r=this.getItems();r.splice(e,1),n({[t]:r}),this.initControlScript()};handleDuplicateItem=e=>{const{options:t,blockAttributeKey:n,setAttributes:r}=this.props,o=this.getItems();let l={};t.map(t=>{l[t.optionKey]=o[e][t.optionKey]}),o.splice(e+1,0,l),r({[n]:o}),this.initControlScript()};handleOnDrag=(e,t)=>{const{blockAttributeKey:n,setAttributes:r}=this.props,o=this.getItems();let l=(i=o,a=e,s="up"===t?e-1:e+1,function(e,t,n){const r=t<0?e.length+t:t;if(r>=0&&r<e.length){const r=n<0?e.length+n:n,[o]=e.splice(t,1);e.splice(r,0,o)}}(i=[...i],a,s),i);var i,a,s;r({[n]:l}),this.initControlScript()};showItems=()=>{const{options:t,blockAttributes:n,blockAttributeKey:r,setAttributes:o}=this.props,l=this.getItems();return l.length>0&&wp.element.createElement("div",{className:"qodef-repeater-items"},l.map((i,a)=>wp.element.createElement("div",{className:"qodef-repeater-item "+(this.state.addedItemIndex===a?"qodef--active":""),key:a},wp.element.createElement("div",{className:"qodef-repeater-item-heading"},wp.element.createElement("span",{className:"qodef-repeater-item-heading-label"},(0,e.__)(`Item ${a+1}`,"qi-blocks")),wp.element.createElement("div",{className:"qodef-repeater-item-action"},l.length>1&&wp.element.createElement(wp.element.Fragment,null,0!==a&&wp.element.createElement(_.Button,{className:"qodef-repeater-button qodef--move-up",icon:"arrow-up-alt2",text:"",showTooltip:!0,label:(0,e.__)("Move Up","qi-blocks"),onClick:()=>this.handleOnDrag(a,"up")}),l.length!==a+1&&wp.element.createElement(_.Button,{className:"qodef-repeater-button qodef--move-down",icon:"arrow-down-alt2",text:"",showTooltip:!0,label:(0,e.__)("Move Down","qi-blocks"),onClick:()=>this.handleOnDrag(a,"down")})),wp.element.createElement(_.Button,{className:"qodef-repeater-button qodef--duplicate",icon:"admin-page",text:"",showTooltip:!0,label:(0,e.__)("Duplicate Item","qi-blocks"),onClick:()=>this.handleDuplicateItem(a)}),wp.element.createElement(_.Button,{className:"qodef-repeater-button qodef--remove",icon:"no-alt",text:"",showTooltip:!0,label:(0,e.__)("Remove Item","qi-blocks"),onClick:()=>this.handleOnRemove(a)}))),wp.element.createElement("div",{className:"qodef-repeater-item-options"},t.map((e,t)=>{const i=e.optionType;let s=e.optionAttributes||{};const c=e.advancedOptions||!1,u=e.dependency||{},p=Object.prototype.hasOwnProperty.call(u,"value")&&Object.prototype.hasOwnProperty.call(u,"key"),m="string"==typeof u.value?[u.value]:u.value,d=Object.prototype.hasOwnProperty.call(u,"isGlobal")?n[u.key]:l[a][u.key];return s=c?{...s,blockAttributeKey:r,blockAttributes:n,setAttributes:o,repeater:!0,repeaterItemIndex:a,repeaterItemKey:e.optionKey,repeaterSetAttributes:this.handleOnChange,repeaterGetAttributes:this.getRepeaterItemValues}:{...s,onChange:t=>this.handleOnChange(e.optionKey,t,a)},wp.element.createElement("div",{key:t,className:"qodef-repeater-item-option"},(p&&m.includes(d)||!p)&&wp.element.createElement(i,Mn({label:e.label||"",placeholder:e.placeholder||"",value:l[a][e.optionKey]},s)))})))))};render(){const{label:t}=this.props;return wp.element.createElement("div",{className:"qodef-repeater-option"},t&&wp.element.createElement("label",{className:"qodef-option-label"},t),this.showItems(),wp.element.createElement(_.Button,{className:"qodef-repeater-button qodef--add",isSecondary:!0,text:(0,e.__)("Add Item","qi-blocks"),onClick:this.handleAddItem}))}}jn.defaultProps={label:(0,e.__)("Items","qi-blocks"),options:[{label:(0,e.__)("Title","qi-blocks"),optionType:_.TextControl,optionKey:"itemTitle",optionDefaultValue:"",optionAttributes:{},advancedOptions:!1,dependency:{}}],blockAttributeKey:"",blockAttributes:{},setAttributes:()=>{},isRichText:!1};const Ln=jn;class Vn extends Pe.Component{constructor(){super(...arguments),this.state={isSettingsPanelVisible:!1}}getAttributeValue(e){const{blockAttributes:t,repeater:n,repeaterItemIndex:r,repeaterItemKey:o,repeaterGetAttributes:l}=this.props;let i=t[e];return n&&(i=l({key:o,childKey:e},r)),U(i)}setAttributeValue(e,t){const{setAttributes:n,repeater:r,repeaterItemIndex:o,repeaterItemKey:l,repeaterSetAttributes:i}=this.props;r?i({key:l,childKey:e},t,o):n({[e]:t})}onClick=e=>{e.preventDefault();const t=this;t.setState({isSettingsPanelVisible:!this.state.isSettingsPanelVisible}),window.addEventListener("click",e=>{const n=document.querySelectorAll(".qodef-url-input-control.qodef--opened");n.length&&n.forEach(n=>{n.contains(e.target)||t.setState({isSettingsPanelVisible:!1})})})};render(){const t={...this.props},n={...this.state},{label:r,attrNameTemplate:o,disableSuggestions:l}=t,i=P(o,"Link"),a=P(o,"LinkTargetBlank"),s=P(o,"LinkRelNofollow"),c=P(o,"LinkCustomAttributes");return wp.element.createElement(_.BaseControl,{className:"qodef-url-input-control "+(n.isSettingsPanelVisible?"qodef--opened":"")},wp.element.createElement("div",{className:"qodef-control-heading"},wp.element.createElement("label",{className:"qodef-option-label"},r),wp.element.createElement(_.Button,{onClick:this.onClick,className:"qodef-url-input-settings-button",icon:"admin-settings"})),wp.element.createElement(Te.URLInput,{value:this.getAttributeValue(i),onChange:e=>this.setAttributeValue(i,e),className:"qodef-url-input",disableSuggestions:l}),n.isSettingsPanelVisible&&wp.element.createElement(_.Card,{size:"small"},wp.element.createElement(_.CardBody,null,wp.element.createElement(_.ToggleControl,{label:(0,e.__)("Open in new window","qi-blocks"),checked:this.getAttributeValue(a),onChange:e=>this.setAttributeValue(a,e)}),wp.element.createElement(_.ToggleControl,{label:(0,e.__)("Add nofollow","qi-blocks"),checked:this.getAttributeValue(s),onChange:e=>this.setAttributeValue(s,e)}),wp.element.createElement(_.TextControl,{label:(0,e.__)("Custom Attributes","qi-blocks"),help:(0,e.__)("Set custom attributes for the link element. Separate attribute keys from values using the | (pipe) character. Separate key-value pairs with a comma.","qi-blocks"),value:this.getAttributeValue(c),placeholder:(0,e.__)("key|value","qi-blocks"),onChange:e=>this.setAttributeValue(c,e)}))))}}Vn.defaultProps={label:"",attrNameTemplate:"",disableSuggestions:!1,blockAttributes:{},setAttributes:()=>{},repeater:!1,repeaterItemIndex:0,repeaterItemKey:"",repeaterSetAttributes:()=>{},repeaterGetAttributes:()=>{}};const Un=Vn,Fn=(e,t="")=>{let n={},r={};if(!e)return n;const o=e=>P(t,e);return V(e[o("Link")])&&(n.href=e[o("Link")]),V(e[o("LinkTargetBlank")],"all")&&(n.target="_blank",n.rel="noopener noreferrer"),V(e[o("LinkRelNofollow")],"all")&&(n.rel=void 0!==n.rel?n.rel+" nofollow":"nofollow"),V(e[o("LinkCustomAttributes")])&&(r=((e="")=>{let t=[];if(""!==e){let n=e.split(",");n.length&&n.forEach(e=>{let n=e.trim().split("|");2===n.length&&(t[n[0]]=n[1])})}return t})(e[o("LinkCustomAttributes")])),se()(n,r)};function Kn(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Kn(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const Hn=function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Kn(e))&&(r&&(r+=" "),r+=t);return r};var zn=n(4848);const Gn=e=>(0,Pe.createElement)("path",e),$n=(0,Pe.forwardRef)(({className:e,isPressed:t,...n},r)=>{const o={...n,className:Hn(e,{"is-pressed":t})||void 0,"aria-hidden":!0,focusable:!1};return(0,zn.jsx)("svg",{...o,ref:r})});$n.displayName="SVG";const Wn=(0,zn.jsx)($n,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,zn.jsx)(Gn,{d:"M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"})}),Yn=(0,zn.jsx)($n,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,zn.jsx)(Gn,{d:"M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"})}),Xn=(0,zn.jsx)($n,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,zn.jsx)(Gn,{d:"M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"})});class Zn extends Pe.Component{constructor(){super(...arguments),this.state={screen:k()}}getScreenLabelSuffix(){return B(this.state.screen)}render(){const e={...this.props},{label:t,blockAttributes:n,setAttributes:r,attrNameTemplate:o,excludeDirection:l}=e,i={left:Wn,center:Yn,right:Xn},a=["left","center","right"].filter(e=>![l].includes(e)),s="HorizontalAlignment",c=P(o,s),u=P(o,s,"Tablet"),p=P(o,s,"Mobile");return e.onChangeScreen=e=>{this.setState({screen:e})},e.onChangeAlignment=e=>{const t=this.getScreenLabelSuffix();r({[`${c}${t}`]:e})},wp.element.createElement(_.BaseControl,{className:"qodef-alignment-horizontal-option"},wp.element.createElement(Xe,{label:t,onChangeScreen:e.onChangeScreen}),"desktop"===this.state.screen&&wp.element.createElement(_.ToolbarGroup,null,a.map((t,r)=>wp.element.createElement(_.ToolbarButton,{key:r,icon:i[t],className:Be()("qodef-alignment-horizontal",{"qodef--selected":t===n[c]}),onClick:()=>e.onChangeAlignment(t)}))),"tablet"===this.state.screen&&wp.element.createElement(_.ToolbarGroup,null,a.map((t,r)=>wp.element.createElement(_.ToolbarButton,{key:r,icon:i[t],className:Be()("qodef-alignment-horizontal",{"qodef--selected":t===n[u]}),onClick:()=>e.onChangeAlignment(t)}))),"mobile"===this.state.screen&&wp.element.createElement(_.ToolbarGroup,null,a.map((t,r)=>wp.element.createElement(_.ToolbarButton,{key:r,icon:i[t],className:Be()("qodef-alignment-horizontal",{"qodef--selected":t===n[p]}),onClick:()=>e.onChangeAlignment(t)}))))}}Zn.defaultProps={label:(0,e.__)("Alignment","qi-blocks"),attrNameTemplate:"",blockAttributes:{},setAttributes:()=>{},excludeDirection:""};const Jn=Zn;var Qn=n(2243),er=n.n(Qn);let tr=[];const nr=qiBlocksEditor.vars.systemFontOptions,rr=e=>{let t=!0;return e||(t=!1),nr&&nr.map(({value:e})=>e).forEach(n=>{""!==n&&e===n&&(t=!1)}),t},or=e=>{if(qiBlocksEditor.qodefGetCurrentBlockElement.getIframe()&&(tr=[]),tr.includes(e))return;const t=qiBlocksEditor.qodefGetCurrentBlockElement.getCurrentDocument();if(t&&rr(e)){const n=t.createElement("link");n.setAttribute("href",(e=>`https://fonts.googleapis.com/css?family=${e.replace(/ /g,"+")}:100,100italic,200,200italic,300,300italic,400,400italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic&subset=latin-ext`)(e)),n.setAttribute("rel","stylesheet"),n.setAttribute("type","text/css"),t.querySelector("head").appendChild(n)}tr.push(e)},lr=qiBlocksEditor.vars.fontOptions,ir=e=>{const t=e.trim().toLowerCase(),n=t.length;return 0===n?[]:lr.filter(e=>!["System","Google"].includes(e.value)&&e.label.toLowerCase().slice(0,n)===t)},ar=e=>e.value,sr=e=>wp.element.createElement("div",{className:"qodef-font-family-autosuggest-option","data-label":e.value},e.label);class cr extends Pe.Component{constructor(){super(...arguments),this.state={value:"",suggestions:[]}}onChange=(e,{newValue:t})=>{let n=t;["System","Google"].includes(n)||(lr.some(e=>e.value.toLowerCase()===n.toLowerCase()&&(n=e.value,or(n),!0)),this.props.setAttributes({[this.props.blockAttributeKey]:n}),this.setState({value:n}))};onSuggestionsFetchRequested=({value:e})=>{this.setState({suggestions:""===e?lr:ir(e)})};onSuggestionsClearRequested=()=>{this.setState({suggestions:[]})};shouldRenderSuggestions(){return!0}componentDidMount(){""!==this.props.blockAttributes.length&&this.setState({value:this.props.blockAttributes[this.props.blockAttributeKey]||"",suggestions:lr})}render(){const{label:e}=this.props,{value:t,suggestions:n}=this.state,r={value:t,type:"search",onChange:this.onChange};return wp.element.createElement(_.BaseControl,{className:"qodef-font-family-option"},wp.element.createElement("label",{className:"qodef-option-label"},e),wp.element.createElement("div",{className:"qodef-font-family-autosuggest"},wp.element.createElement(er(),{suggestions:n,onSuggestionsFetchRequested:this.onSuggestionsFetchRequested,onSuggestionsClearRequested:this.onSuggestionsClearRequested,shouldRenderSuggestions:this.shouldRenderSuggestions,getSuggestionValue:ar,renderSuggestion:sr,inputProps:r})))}}cr.defaultProps={label:(0,e.__)("Font Family","qi-blocks"),blockAttributeKey:"",blockAttributes:{},setAttributes:()=>{}};const ur=cr,pr=t=>{const n={...t},{attrNameTemplate:r,blockAttributes:o,setAttributes:l,popup:i,repeater:a,repeaterItemIndex:s,repeaterItemKey:c,repeaterSetAttributes:u,repeaterGetAttributes:p,allowReset:m}=n,[d,b]=(0,Pe.useState)(!1);let f=["qodef-typography-panel"];i?f.push("qodef--has-popup"):f.push("qodef-base-section-label"),d&&f.push("qodef--opened"),n.onClick=()=>{b(e=>!e),window.addEventListener("click",e=>{const t=document.querySelectorAll(".qodef-typography-panel.qodef--opened");t.length&&t.forEach(t=>{t.contains(e.target)||b(!1)})})};const g=e=>P(r,e);return n.getAttributeValue=e=>{let t=o[e];return a&&(t=p({key:c,childKey:e},s)),U(t)},n.setAttributeValue=(e,t)=>{a?u({key:c,childKey:e},t,s):l({[e]:t})},wp.element.createElement(_.BaseControl,{label:i?"":n.label,className:f.join(" ")},i&&wp.element.createElement("div",{className:"qodef-typography-panel-heading"},wp.element.createElement("label",{className:"qodef-option-label"},n.label),wp.element.createElement(_.Button,{icon:"edit",showTooltip:!0,label:(0,e.__)("Open Typography","qi-blocks"),onClick:n.onClick})),wp.element.createElement("div",{className:"qodef-typography-panel-content"},wp.element.createElement(ur,{setAttributes:l,blockAttributes:o,blockAttributeKey:g("FontFamily"),repeater:a,repeaterItemIndex:s,repeaterItemKey:c,repeaterSetAttributes:u,repeaterGetAttributes:p}),wp.element.createElement(vn,{label:(0,e.__)("Font Size","qi-blocks"),blockAttributeKey:g("FontSize"),setAttributes:l,blockAttributes:o,rangeDecimalMax:20,allowScreens:!0,allowUnitsConvertor:!0,repeater:a,repeaterItemIndex:s,repeaterItemKey:c,isSimpleRepeaterValue:!0,repeaterSetAttributes:u,repeaterGetAttributes:p,allowReset:m}),wp.element.createElement(_.SelectControl,{label:(0,e.__)("Weight","qi-blocks"),options:F("font_weight"),value:n.getAttributeValue(g("FontWeight")),onChange:e=>n.setAttributeValue(g("FontWeight"),e)}),wp.element.createElement(_.SelectControl,{label:(0,e.__)("Transform","qi-blocks"),options:F("text_transform"),value:n.getAttributeValue(g("TextTransform")),onChange:e=>n.setAttributeValue(g("TextTransform"),e)}),wp.element.createElement(_.SelectControl,{label:(0,e.__)("Style","qi-blocks"),options:F("font_style"),value:n.getAttributeValue(g("FontStyle")),onChange:e=>n.setAttributeValue(g("FontStyle"),e)}),wp.element.createElement(_.SelectControl,{label:(0,e.__)("Decoration","qi-blocks"),options:F("text_decoration"),value:n.getAttributeValue(g("TextDecoration")),onChange:e=>n.setAttributeValue(g("TextDecoration"),e)}),wp.element.createElement(vn,{label:(0,e.__)("Line Height","qi-blocks"),setAttributes:l,blockAttributes:o,blockAttributeKey:g("LineHeight"),allowScreens:!0,allowUnitsConvertor:!0,repeater:a,repeaterItemIndex:s,repeaterItemKey:c,isSimpleRepeaterValue:!0,repeaterSetAttributes:u,repeaterGetAttributes:p,allowReset:m}),wp.element.createElement(vn,{label:(0,e.__)("Letter Spacing","qi-blocks"),setAttributes:l,blockAttributes:o,blockAttributeKey:g("LetterSpacing"),rangeMin:-10,rangeMax:30,rangeStep:.1,rangeDecimalMin:-10,unitType:"pxEmRem",allowScreens:!0,repeater:a,repeaterItemIndex:s,repeaterItemKey:c,isSimpleRepeaterValue:!0,repeaterSetAttributes:u,repeaterGetAttributes:p,allowReset:m})))};pr.defaultProps={label:(0,e.__)("Typography","qi-blocks"),attrNameTemplate:"",blockAttributes:{},setAttributes:()=>{},popup:!1,allowReset:!0,repeater:!1,repeaterItemIndex:0,repeaterItemKey:"",repeaterSetAttributes:()=>{},repeaterGetAttributes:()=>{}};const mr=pr,dr=e=>{const{attrNameTemplate:t,attributes:n}=e,r=(e,n)=>P(t,e,n);if(!n)return{};let o={},l={},i={};return n[r("FontFamily")]&&(o.fontFamily=`'${n[r("FontFamily")]}'`),n[r("FontWeight")]&&(o.fontWeight=n[r("FontWeight")]),n[r("TextTransform")]&&(o.textTransform=n[r("TextTransform")]),n[r("FontStyle")]&&(o.fontStyle=n[r("FontStyle")]),n[r("TextDecoration")]&&(o.textDecoration=n[r("TextDecoration")]),Object.entries(y).map(([e])=>{let t=B(e),a={};(n[r("FontSize",t)]||n[r("FontSizeDecimal",t)])&&(M(n[r("FontSizeUnit",t)])&&n[r("FontSize",t)]?a.fontSize=parseInt(n[r("FontSize",t)],10)+n[r("FontSizeUnit",t)]:j(n[r("FontSizeUnit",t)])&&n[r("FontSizeDecimal",t)]&&(a.fontSize=parseFloat(n[r("FontSizeDecimal",t)])+n[r("FontSizeUnit",t)])),(n[r("LineHeight",t)]||n[r("LineHeightDecimal",t)])&&(M(n[r("LineHeightUnit",t)])&&n[r("LineHeight",t)]?a.lineHeight=parseInt(n[r("LineHeight",t)],10)+n[r("LineHeightUnit",t)]:j(n[r("LineHeightUnit",t)])&&n[r("LineHeightDecimal",t)]&&(a.lineHeight=parseFloat(n[r("LineHeightDecimal",t)])+n[r("LineHeightUnit",t)])),""===U(n[r("LetterSpacing",t)])&&""===U(n[r("LetterSpacingDecimal",t)])||(M(n[r("LetterSpacingUnit",t)])&&""!==U(n[r("LetterSpacing",t)])?a.letterSpacing=parseInt(n[r("LetterSpacing",t)],10)+n[r("LetterSpacingUnit",t)]:j(n[r("LetterSpacingUnit",t)])&&""!==U(n[r("LetterSpacingDecimal",t)])&&(a.letterSpacing=parseFloat(n[r("LetterSpacingDecimal",t)])+n[r("LetterSpacingUnit",t)])),Object.keys(a).length>0&&Object.entries(a).map(([t,n])=>{switch(e){case"desktop":o[t]=n;break;case"tablet":l[t]=n;break;case"mobile":i[t]=n}})}),{desktop:o,tablet:l,mobile:i}},br=(0,Oe.createHigherOrderComponent)(e=>class extends Pe.Component{static defaultProps={attributes:{}};componentDidMount(){(e=>{Object.keys(e).filter(e=>e.match(/fontfamily/i)).forEach(t=>{const n=e[t];n&&setTimeout(()=>{or(n)},400)})})(this.props.attributes)}render(){return wp.element.createElement(e,this.props)}},"withGoogleFont"),fr=br;var gr=n(2404),hr=n.n(gr);const yr=(0,Oe.createHigherOrderComponent)(e=>class extends Pe.Component{static defaultProps={clientId:"",attributes:{},setAttributes:()=>{}};componentDidMount(){const{clientId:e,attributes:t,setAttributes:n}=this.props;t.uniqueClass||n({uniqueClass:this.getNewUniqueClass(e)}),this.reInitUniqueClass(!0)}getNewUniqueClass(e){let t="qodef-block-";return this.props.isFullSiteEditor?t="qodef-template-block-":"widget"===this.props.postID&&(t="qodef-widget-block-"),`${t}${e.substring(0,8)}`}hasParent(e,t){let n=!1,r=e?.parentNode;for(;r;){let e=r;if(e&&e?.classList?.contains(t)){n=!0;break}if(!e?.parentNode)break;r=e.parentNode}return n}reInitUniqueClass(e){const{clientId:t,attributes:n,setAttributes:r,isFullSiteEditor:o}=this.props,{uniqueClass:l}=n,i=qiBlocksEditor.qodefGetCurrentBlockElement.getCurrentDocument(),a=this.getNewUniqueClass(t);let s=!1;if(o){if(l.includes("qodef-block")||l.includes("qodef-widget")){const e=i.querySelector(`.${l}`);if(e){this.hasParent(e,"wp-block-post-content")||(s=!0)}}e&&i.addEventListener("paste",()=>{s=!0})}!o&&l.includes("qodef-template-block")&&(s=!0),""!==l&&l!==a&&i.querySelectorAll(`.${l}`).length>1&&(s=!0),s&&r({uniqueClass:a})}render(){return this.reInitUniqueClass(),wp.element.createElement(e,this.props)}},"withUniqueClass"),vr=yr;function kr(){return kr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kr.apply(null,arguments)}let _r=[],wr={family:[],weight:[],style:[]};const Sr=e=>{let t="";return Object.entries(e).map(([e,n])=>{if(e.match(/fontfamily/i)){const e=n.replace(/["']/g,"");!_r.includes(e)&&rr(e)&&(wr.family.push(e),_r.push(e))}e.match(/fontweight/i)&&wr.weight.push(parseInt(n,10)),e.match(/fontstyle/i)&&wr.style.push(n),t+=`${e.replace(/([A-Z])/g,(e,t,n)=>(n>0?"-":"")+e.toLowerCase())}: ${n};`}),t},Ar=(0,Oe.createHigherOrderComponent)(e=>class extends Pe.Component{addPageStyle(e){if(e){const t=this.postID;let n=this.getPageStyles||[],r={key:this.attributes.uniqueClass,values:[],fonts:[]};_r=[],wr={family:[],weight:[],style:[]},e.forEach((o,l)=>{if(!Object.values(o.styles).every(e=>0===Object.keys(e).length)){const e=["widget","template"].includes(t)?"":`body[class*="-${t}"]`,n=`${e} ${o.selector}`,l=[];"string"!=typeof o.selector&&o.selector.forEach(t=>{t&&l.push(`${e} ${t}`)}),r.values.push({selector:l.length>1?l.join(","):n,styles:Sr(o.styles.desktop||""),tablet_styles:Sr(o.styles.tablet||""),mobile_styles:Sr(o.styles.mobile||""),custom_styles:o.custom_styles||[]}),r.fonts=wr}if(l===e.length-1)if(n&&n.length){let e=!1;n.map((t,o)=>{t.key===r.key&&(e=!0,r.values.length?hr()(t.values,r.values)||(n[o].values=r.values,n[o].fonts=r.fonts):(n[o].values=[],n[o].fonts={family:[],weight:[],style:[]}))}),!e&&r.values.length&&n.push(r)}else"object"==typeof n&&Object.keys(n).length?(n=Object.values(n),n.push(r)):n.push(r);const i=n.filter(e=>e.values.length);qiBlocksEditor.vars.currentPageID=t,qiBlocksEditor.vars.currentPageStyles=i})}}render(){return wp.element.createElement(e,kr({},this.props,{addPageStyle:this.addPageStyle}))}},"withStyles"),Ir=(0,Oe.compose)((0,i.withSelect)(e=>{let t=e("core/editor")?.getCurrentPostId()||"widget";const n=!!e("core/edit-site");let r="desktop";return e("core/edit-post")&&(r="function"==typeof e("core/editor")?.getDeviceType?e("core/editor")?.getDeviceType()?.toLowerCase():e("core/edit-post")?.__experimentalGetPreviewDeviceType()?.toLowerCase()),n&&(t="template",r="function"==typeof e("core/editor")?.getDeviceType?e("core/editor")?.getDeviceType()?.toLowerCase():e("core/edit-site").__experimentalGetPreviewDeviceType().toLowerCase()),{previewScreen:r,postID:t,getPageStyles:e("qi-blocks/data/with-styles").getOptions(t).data,isFullSiteEditor:n}}),vr,Ar);class xr extends Pe.Component{render(){const{attributes:t,setAttributes:n,previewScreen:r}=this.props,{uniqueClass:o,enableBorders:l,enableBoxed:i,hoverType:a,clientItemsRepeater:s,borderStyle:c,borderWidthUnit:u,titleTag:p,titleMarginBottomUnit:m,imagesMarginBottomUnit:d,titleHoverUnderline:b}=t;let f=e=>{let t="",n="";return e.clientImage&&e.clientImage.url&&(t=`<img src="${e.clientImage.url}" alt="${e.clientImage.alt}"/>`,e.clientImage.html&&(t=e.clientImage.html)),e.clientHoverImage&&e.clientHoverImage.url&&(n=`<img src="${e.clientHoverImage.url}" alt="${e.clientHoverImage.alt}"/>`,e.clientHoverImage.html&&(n=e.clientHoverImage.html)),wp.element.createElement("div",{className:"qodef-e-images-holder",style:R(de,r)},t&&wp.element.createElement("div",{className:"qodef-e-main-image",dangerouslySetInnerHTML:{__html:t}}),n&&wp.element.createElement("div",{className:"qodef-e-hover-image",dangerouslySetInnerHTML:{__html:n}}))};const g=E(t),h=Ge({blockAttributes:t});let v={className:C(t),style:R(h,r),...q(t)};g&&(v.id=g);let k=Pn({blockAttributes:t,attrNameTemplate:"Clients",allowColumnsGap:!1}),w=p;const A=Be()(T("clients-list",this.props),k,`qodef-border--${l}`,"no"===l&&i?"qodef--boxed":"",`qodef--hover-${a}`,b?"qodef-title--hover-underline":"");let I={pageStyle:[],editorStyle:""};"no"===l&&(I=(e=>{const{attributes:t,attrNameTemplate:n,previewScreen:r}=e,o=(e,t)=>P(n,e,t);let l=t.uniqueClass,i={},a={},s={},c={pageStyle:[],editorStyle:""};Object.entries(y).map(([e])=>{let n=B(e),r={};""===t[o("SpaceBetweenItems",n)]&&""===t[o("SpaceBetweenItemsDecimal",n)]||(M(t[o("SpaceBetweenItemsUnit",n)])&&""!==U(t[o("SpaceBetweenItems",n)])?r["--qi-blocks-columns-gap"]=parseInt(t[o("SpaceBetweenItems",n)],10)+t[o("SpaceBetweenItemsUnit",n)]:j(t[o("SpaceBetweenItemsUnit",n)])&&""!==U(t[o("SpaceBetweenItemsDecimal",n)])&&(r["--qi-blocks-columns-gap"]=parseFloat(t[o("SpaceBetweenItemsDecimal",n)])+t[o("SpaceBetweenItemsUnit",n)])),Object.keys(r).length>0&&Object.entries(r).map(([t,n])=>{switch(e){case"desktop":i[t]=n;break;case"tablet":a[t]=n;break;case"mobile":s[t]=n}})});const u={desktop:i,tablet:a,mobile:s};return c.pageStyle.push({selector:`.${l} .qodef-gutenberg-section`,styles:u}),c.editorStyle+=D(R(u,r))&&`.${l} .qodef-gutenberg-section.qodef--columns, \n\t\t.${l} .qodef-gutenberg-section.qodef-gutenberg-masonry-layout {\n\t\t\t${D(R(u,r),!1)}\n\t\t}`,c})({attributes:t,attrNameTemplate:"Clients",previewScreen:r}));let x="all"===l?K({attributes:t,blockAttrName:"borderColor",cssProp:"borderColor"}):{},O="all"===l?K({attributes:t,blockAttrName:"borderStyle",cssProp:"borderStyle"}):{},N="inner"===l?K({attributes:t,blockAttrName:"borderWidth",cssProp:"marginTop"},"-%s !important"):{},L="inner"===l?K({attributes:t,blockAttrName:"borderWidth",cssProp:"marginLeft"},"-%s !important"):{},V="inner"===l?K({attributes:t,blockAttrName:"borderWidth",cssProp:"width"},"calc(100% + %s) !important"):{},H="all"===l?K({attributes:t,blockAttrName:"borderWidth",cssProp:"borderWidth"}):{},z=se()(x,O,N,L,V,H),G="inner"===l?K({attributes:t,blockAttrName:"borderColor",cssProp:"borderColor"}):{},$="inner"===l?K({attributes:t,blockAttrName:"borderStyle",cssProp:"borderTopStyle"}):{},W="inner"===l?K({attributes:t,blockAttrName:"borderStyle",cssProp:"borderLeftStyle"}):{},Y="no"!==l?K({attributes:t,blockAttrName:"borderWidth",cssProp:"borderWidth"}):{},X="all"===l?K({attributes:t,blockAttrName:"borderColor",cssProp:"borderColor"}):{},Z="all"===l?K({attributes:t,blockAttrName:"borderStyle",cssProp:"borderStyle"}):{},J=K({attributes:t,blockAttrName:"textHorizontalAlignment",cssProp:"textAlign"}),Q=se()(G,G,$,W,Y,J,X,Z),ee="no"===l&&i?K({attributes:t,blockAttrName:"boxBackgroundColor",cssProp:"backgroundColor"}):{},te="no"===l&&i?De({attrNameTemplate:"Box",attrName:"Padding",blockAttributes:t}):{},ne=i?{}:De({attrNameTemplate:"Content",attrName:"Padding",blockAttributes:t}),re=se()(ee,te,ne),oe=dr({attrNameTemplate:"Title",attributes:t}),le=K({attributes:t,blockAttrName:"titleColor",cssProp:"color"}),ie=K({attributes:t,blockAttrName:"titleMarginBottom",cssProp:"marginBottom"}),ae=se()(oe,le,ie),ce=dr({attrNameTemplate:"Text",attributes:t}),ue=K({attributes:t,blockAttrName:"textColor",cssProp:"color"}),pe=se()(ce,ue),me=K({attributes:t,blockAttrName:"imagesMarginBottom",cssProp:"marginBottom"}),de=se()(me,{}),be=K({attributes:t,blockAttrName:"iconColor",cssProp:"color"}),fe=K({attributes:t,blockAttrName:"iconSize",cssProp:"fontSize"}),ge=K({attributes:t,blockAttrName:"iconTopPosition",cssProp:"top"}),he=K({attributes:t,blockAttrName:"iconRightPosition",cssProp:"right"}),ye=se()(be,fe,ge,he);return this.props.addPageStyle([{selector:`.${o}.qodef-block-container`,styles:h},{selector:`.${o} .qi-block-clients-list .qodef-gutenberg-row`,styles:z},{selector:`.${o} .qi-block-clients-list .qodef-gutenberg-row .qodef-gutenberg-column`,styles:Q},{selector:`.${o} .qi-block-clients-list .qodef-e-inner`,styles:re},{selector:`.${o} .qi-block-clients-list .qodef-e-images-holder`,styles:de},{selector:`.${o} .qi-block-clients-list .qodef-e-title`,styles:ae},{selector:`.${o} .qi-block-clients-list .qodef-e-text`,styles:pe},{selector:`.${o} .qi-block-clients-list .qodef-e-icon`,styles:ye},...I.pageStyle]),wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(Te.InspectorControls,null,wp.element.createElement(_.TabPanel,{className:"qodef-tab-panel qodef--clients-list",activeClass:"qodef--active",tabs:[{name:"content",title:(0,e.__)("Content","qi-blocks")},{name:"style",title:(0,e.__)("Style","qi-blocks")},{name:"advanced",title:(0,e.__)("Advanced","qi-blocks")}]},r=>wp.element.createElement(wp.element.Fragment,null,"content"===r.name&&wp.element.createElement(_.BaseControl,{className:"qodef-base-control-container"},wp.element.createElement(On,{setAttributes:n,blockAttributes:t,attrNameTemplate:"Clients",allowColumnsGap:!1,allowColumnsGapSlider:"no"===l,allowColumnsResponsive:!0,columnsMinNumber:1,columnsMaxNumber:8}),wp.element.createElement(_.SelectControl,{label:(0,e.__)("Enable Borders","qi-blocks"),value:l,options:[{value:"no",label:(0,e.__)("No","qi-blocks")},{value:"inner",label:(0,e.__)("Inner Borders","qi-blocks")},{value:"all",label:(0,e.__)("All Borders","qi-blocks")}],onChange:e=>n({enableBorders:e})}),"no"===l&&wp.element.createElement(S,{label:(0,e.__)("Enable Boxed Items","qi-blocks"),blockAttributeKey:"enableBoxed",blockAttributes:t,setAttributes:n}),wp.element.createElement(_.SelectControl,{label:(0,e.__)("Hover Type","qi-blocks"),value:a,options:[{value:"",label:(0,e.__)("None","qi-blocks")},{value:"change-image",label:(0,e.__)("Change Image","qi-blocks")},{value:"opacity",label:(0,e.__)("Opacity","qi-blocks")},{value:"scale",label:(0,e.__)("Scale","qi-blocks")},{value:"roll-horizontal",label:(0,e.__)("Horizontal Rollover","qi-blocks")},{value:"roll-vertical",label:(0,e.__)("Vertical Rollover","qi-blocks")}],onChange:e=>n({hoverType:e})}),wp.element.createElement(Ln,{label:(0,e.__)("Clients","qi-blocks"),options:[{label:(0,e.__)("Client Image","qi-blocks"),optionType:cn,optionKey:"clientImage",optionAttributes:{allowImageSizes:!0},advancedOptions:!0},{label:(0,e.__)("Client Hover Image","qi-blocks"),optionType:cn,optionKey:"clientHoverImage",optionAttributes:{allowImageSizes:!0},advancedOptions:!0},{label:(0,e.__)("Client Title","qi-blocks"),optionType:_.TextControl,optionKey:"clientTitle"},{label:(0,e.__)("Client Text","qi-blocks"),optionType:_.TextareaControl,optionKey:"clientText"},{label:(0,e.__)("Client Link","qi-blocks"),optionType:Un,optionKey:"clientLink",optionDefaultValue:{},advancedOptions:!0},{label:(0,e.__)("Client Icon","qi-blocks"),optionType:cn,optionKey:"clientIcon",advancedOptions:!0}],blockAttributeKey:"clientItemsRepeater",blockAttributes:t,setAttributes:n})),"style"===r.name&&wp.element.createElement(_.BaseControl,{className:"qodef-base-control-container"},wp.element.createElement(_.TabPanel,{className:"qodef-tab-panel qodef--inner",activeClass:"qodef--active",tabs:[{name:"general",title:(0,e.__)("General","qi-blocks")},{name:"icon",title:(0,e.__)("Icon","qi-blocks")},{name:"border",title:(0,e.__)("Border","qi-blocks")},{name:"boxed",title:(0,e.__)("Boxed","qi-blocks")}]},r=>wp.element.createElement(wp.element.Fragment,null,"general"===r.name&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(Jn,{label:(0,e.__)("Text Alignment","qi-blocks"),blockAttributes:t,setAttributes:n,attrNameTemplate:"Text",attrName:"Alignment"}),wp.element.createElement(_.SelectControl,{label:(0,e.__)("Title Tag","qi-blocks"),value:p,options:F("title_tag",!1),onChange:e=>n({titleTag:e})}),wp.element.createElement(S,{label:(0,e.__)("Title Hover Underline","qi-blocks"),blockAttributeKey:"titleHoverUnderline",blockAttributes:t,setAttributes:n}),wp.element.createElement(pn,{label:(0,e.__)("Title Color","qi-blocks"),blockAttributeKey:"titleColor",blockAttributes:t,setAttributes:n}),wp.element.createElement(mr,{label:(0,e.__)("Title Typography","qi-blocks"),attrNameTemplate:"Title",blockAttributes:t,setAttributes:n,popup:!0}),wp.element.createElement(pn,{label:(0,e.__)("Text Color","qi-blocks"),blockAttributeKey:"textColor",blockAttributes:t,setAttributes:n}),wp.element.createElement(mr,{label:(0,e.__)("Text Typography","qi-blocks"),attrNameTemplate:"Text",blockAttributes:t,setAttributes:n,popup:!0}),wp.element.createElement(vn,{label:(0,e.__)("Images Margin Bottom","qi-blocks"),blockAttributeKey:"imagesMarginBottom",setAttributes:n,blockAttributes:t,rangeDecimalMax:"em"===d?10:100,allowScreens:!0,unitType:"space"}),wp.element.createElement(vn,{label:(0,e.__)("Title Margin Bottom","qi-blocks"),blockAttributeKey:"titleMarginBottom",setAttributes:n,blockAttributes:t,rangeDecimalMax:"em"===m?10:100,allowScreens:!0,unitType:"space"}),wp.element.createElement(Je,{label:(0,e.__)("Content Padding","qi-blocks"),setAttributes:n,blockAttributes:t,attrNameTemplate:"Content",attrName:"Padding",unitType:"space"})),"icon"===r.name&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(pn,{label:(0,e.__)("Icon Color","qi-blocks"),blockAttributeKey:"iconColor",blockAttributes:t,setAttributes:n}),wp.element.createElement(vn,{label:(0,e.__)("Icon Size","qi-blocks"),blockAttributeKey:"iconSize",setAttributes:n,blockAttributes:t,rangeMax:100,rangeMin:1,rangeDecimalMax:"em"===t.iconSizeUnit?10:100,rangeDecimalMin:.01,allowScreens:!0,unitType:"space"}),wp.element.createElement(vn,{label:(0,e.__)("Icon Top Position","qi-blocks"),blockAttributeKey:"iconTopPosition",setAttributes:n,blockAttributes:t,rangeMax:200,rangeDecimalMax:100,rangeDecimalMin:.1,allowScreens:!0,unitType:"pxAndPercent"}),wp.element.createElement(vn,{label:(0,e.__)("Icon Right Position","qi-blocks"),blockAttributeKey:"iconRightPosition",setAttributes:n,blockAttributes:t,rangeMax:200,rangeDecimalMax:100,rangeDecimalMin:.1,allowScreens:!0,unitType:"pxAndPercent"})),"border"===r.name&&wp.element.createElement(wp.element.Fragment,null,"no"!==l&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(pn,{label:(0,e.__)("Border Color","qi-blocks"),blockAttributeKey:"borderColor",blockAttributes:t,setAttributes:n}),wp.element.createElement(_.SelectControl,{label:(0,e.__)("Border Style","qi-blocks"),value:c,options:F("border_style",!1),onChange:e=>n({borderStyle:e})}),wp.element.createElement(vn,{label:(0,e.__)("Border Width","qi-blocks"),blockAttributeKey:"borderWidth",setAttributes:n,blockAttributes:t,rangeMax:100,rangeMin:1,rangeDecimalMax:"em"===u?10:100,rangeDecimalMin:.01,allowScreens:!0,unitType:"space"}))),"boxed"===r.name&&wp.element.createElement(wp.element.Fragment,null,"no"===l&&i&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(pn,{label:(0,e.__)("Background Color","qi-blocks"),blockAttributeKey:"boxBackgroundColor",blockAttributes:t,setAttributes:n}),wp.element.createElement(Je,{label:(0,e.__)("Item Padding","qi-blocks"),setAttributes:n,blockAttributes:t,attrNameTemplate:"Box",attrName:"Padding"})))))),"advanced"===r.name&&wp.element.createElement(En,{blockAttributes:t,setAttributes:n})))),wp.element.createElement("style",null,D(R(z,r))&&`.${o} .qi-block-clients-list .qodef-gutenberg-row {\n                            ${D(R(z,r),!1)}\n                        }`,I.editorStyle),wp.element.createElement("div",v,wp.element.createElement("div",{className:A},s&&wp.element.createElement("div",{className:"qodef-gutenberg-row"},s.map((e,t)=>{let n=Fn(e.clientLink,"");return wp.element.createElement("div",{key:t,className:"qodef-e qodef-gutenberg-column",style:R(Q,r)},wp.element.createElement("div",{className:"qodef-e-inner",style:R(re,r)},e.clientLink.link&&wp.element.createElement("a",n,f(e)),!e.clientLink.link&&f(e),e.clientTitle&&wp.element.createElement(w,{className:"qodef-e-title",style:R(ae,r)},e.clientLink.link&&wp.element.createElement("a",n,e.clientTitle),!e.clientLink.link&&e.clientTitle),e.clientText&&wp.element.createElement("p",{className:"qodef-e-text",style:R(pe,r)},e.clientText),(e=>{let t="";return e.clientIcon&&e.clientIcon.url&&(t=`<img src="${e.clientIcon.url}" alt="${e.clientIcon.alt}"/>`,e.clientIcon.html&&(t=e.clientIcon.html)),t&&wp.element.createElement("div",{className:"qodef-e-icon",style:R(ye,r),dangerouslySetInnerHTML:{__html:t}})})(e)))})))))}}xr.defaultProps={previewScreen:h};const Cr=(0,Oe.compose)(Ir,fr)(xr);class qr extends Pe.Component{render(){const{attributes:e}=this.props,{enableBorders:t,enableBoxed:n,hoverType:r,clientItemsRepeater:o,titleTag:l,titleHoverUnderline:i}=e;let a=e=>{let t="",n="";if(e.clientImage&&e.clientImage.url){t=`<img class="${e.clientImage.id?`wp-image-${e.clientImage.id}`:""}" src="${e.clientImage.url}" alt="${e.clientImage.alt}"/>`,e.clientImage.html&&(t=e.clientImage.html)}if(e.clientHoverImage&&e.clientHoverImage.url){n=`<img class="${e.clientHoverImage.id?`wp-image-${e.clientHoverImage.id}`:""}" src="${e.clientHoverImage.url}" alt="${e.clientHoverImage.alt}"/>`,e.clientHoverImage.html&&(n=e.clientHoverImage.html)}return wp.element.createElement("div",{className:"qodef-e-images-holder"},t&&wp.element.createElement("div",{className:"qodef-e-main-image",dangerouslySetInnerHTML:{__html:t}}),n&&wp.element.createElement("div",{className:"qodef-e-hover-image",dangerouslySetInnerHTML:{__html:n}}))};const s=E(e);let c={className:C(e),...q(e)};s&&(c.id=s);let u=Pn({blockAttributes:e,attrNameTemplate:"Clients",allowColumnsGap:!1}),p=l;const m=Be()(T("clients-list",this.props),u,`qodef-border--${t}`,"no"===t&&n?"qodef--boxed":"",`qodef--hover-${r}`,i?"qodef-title--hover-underline":"");return wp.element.createElement("div",c,wp.element.createElement("div",{className:m},o&&wp.element.createElement("div",{className:"qodef-gutenberg-row"},o.map((e,t)=>{let n=Fn(e.clientLink,"");return wp.element.createElement("div",{key:t,className:"qodef-e qodef-gutenberg-column"},wp.element.createElement("div",{className:"qodef-e-inner"},e.clientLink.link&&wp.element.createElement("a",n,a(e)),!e.clientLink.link&&a(e),e.clientTitle&&wp.element.createElement(p,{className:"qodef-e-title"},e.clientLink.link&&wp.element.createElement("a",n,e.clientTitle),!e.clientLink.link&&e.clientTitle),e.clientText&&wp.element.createElement("p",{className:"qodef-e-text"},e.clientText),e.clientIcon&&wp.element.createElement("div",{className:"qodef-e-icon"},e.clientLink.link&&wp.element.createElement("a",n,e.clientIcon),!e.clientLink.link&&e.clientIcon),(e=>{let t="";return e.clientIcon&&e.clientIcon.url&&(t=`<img src="${e.clientIcon.url}" alt="${e.clientIcon.alt}"/>`,e.clientIcon.html&&(t=e.clientIcon.html)),t&&wp.element.createElement("div",{className:"qodef-e-icon",dangerouslySetInnerHTML:{__html:t}})})(e)))}))))}}const Er=qr,Tr={attributes:{clientsColumns:2,clientItemsRepeater:[{clientImage:{id:"",url:qiBlocksEditor.vars.defaultImage,alt:""},clientHoverImage:{id:"",url:qiBlocksEditor.vars.defaultImage,alt:""},clientTitle:qiBlocksEditor.vars.defaultTitleLabel+" 1",clientText:qiBlocksEditor.vars.defaultContentLabel,clientLink:{},clientIcon:{id:"",url:"",alt:""}},{clientImage:{id:"",url:qiBlocksEditor.vars.defaultImage,alt:""},clientHoverImage:{id:"",url:qiBlocksEditor.vars.defaultImage,alt:""},clientTitle:qiBlocksEditor.vars.defaultTitleLabel+" 2",clientText:qiBlocksEditor.vars.defaultContentLabel,clientLink:{},clientIcon:{id:"",url:"",alt:""}}],titleTag:"h4"}};var Or=n(5072),Pr=n.n(Or),Nr=n(7825),Br=n.n(Nr),Rr=n(7659),Dr=n.n(Rr),Mr=n(5056),jr=n.n(Mr),Lr=n(540),Vr=n.n(Lr),Ur=n(1113),Fr=n.n(Ur),Kr=n(8930),Hr={};Hr.styleTagTransform=Fr(),Hr.setAttributes=jr(),Hr.insert=Dr().bind(null,"head"),Hr.domAPI=Br(),Hr.insertStyleElement=Vr();Pr()(Kr.A,Hr);Kr.A&&Kr.A.locals&&Kr.A.locals;var zr;function Gr(){return Gr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gr.apply(null,arguments)}const $r=e=>s.createElement("svg",Gr({xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",width:24,height:24},e),zr||(zr=s.createElement("g",{fill:"none",stroke:"#EE2852",strokeMiterlimit:10},s.createElement("circle",{cx:11.952,cy:7.567,r:2.5}),s.createElement("circle",{cx:3.008,cy:7.567,r:2.5}),s.createElement("circle",{cx:20.993,cy:7.567,r:2.5}),s.createElement("circle",{cx:11.952,cy:16.43,r:2.5}),s.createElement("circle",{cx:3.008,cy:16.43,r:2.5}),s.createElement("circle",{cx:20.993,cy:16.43,r:2.5}))));(0,t.registerBlockType)("qi-blocks/clients-list",{icon:wp.element.createElement($r,null),title:(0,e.__)("Clients List","qi-blocks"),description:(0,e.__)("Display a captivating list of your clients or business associates the easy way.","qi-blocks"),category:"qi-blocks",keywords:[(0,e.__)("business","qi-blocks"),(0,e.__)("hover","qi-blocks"),(0,e.__)("interactive","qi-blocks"),(0,e.__)("business partners","qi-blocks"),(0,e.__)("animation","qi-blocks"),(0,e.__)("icon","qi-blocks"),(0,e.__)("qi","qi-blocks")],attributes:Ee,example:Tr,edit:Cr,save:Er})})()})();